PDA

View Full Version : widget->x() always 4



rakkar
16th October 2009, 18:36
I have a QMainWindow that I spawn from my application and add it to a QWorkspace. When I call mainWindow->x(), it always returns 4, no matter what the actual position is relative to the application window.

How do I get the x and y positions of the window relative to the application window?

wysota
17th October 2009, 11:40
Please prepare a minimal compilable example reproducing the problem.