Short explanation of my problem:
On the picture two polygons are shown. The highlighted (yellow) polygon is above the green polygon. Now, two operations are performed.
yellowFeature.geometry().overlaps(greenFeature.geometry()) --> False
greenFeature.geometry().contains(yellowFeature.geometry()) --> True
The results of the two functions were to be expected. Now the yellow geometry is divided into two halves.
Again, the two operations are performed.
yellowFeature.geometry().overlaps(greenFeature.geometry()) --> True
greenFeature.geometry().contains(yellowFeature.geometry()) --> False
The result I did not expect. I expected the same results as before the cut operation. This behavior results in another program to a major problem, since the geometry is correct and the yellow geometry does not overlap.
How can I change this behavior? Does it have anything to do with the precision (decimal)?
My settings: Topological editing is enabled. Snapping tolerance 5px.