Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
4.7.0
-
None
-
Qt/X11, built from sources on OpenSuse 11.2, happens with both X11 and raster graphics systems
Description
when a qwidget is created and its geometry is set programmatically, mapToGlobal and mapfromglobal return incorrect values.
the attached test case shows the problem.
with it i get the following output:
QRect(0,0 640x320) QPoint(0,0) QPoint(0,0)
QRect(100,100 100x100) QPoint(104,123) QPoint(0,0)
while the second line should be:
QRect(100,100 100x100) QPoint(100,100) QPoint(-100,-100)