PDA

View Full Version : frameGeomtery under X11



mbrusati
26th February 2009, 00:37
When frameGeometry.getCoords is called from resizeEvent the bottom right corner of the QRect is always reported as changing and the top left corner is never reported as changing, even when I drag the top left corner. I know there are some peculiarities wrt window geometry under X11, but this just seems plain wrong. Is there some reliable way to get the window geometry of a widget (position and size) under X11?

ad5xj
26th February 2009, 16:13
This is not an uncommon problem. I too have problems with it using MDI Mainwindow and MDISubWindow children. There is much good reading in the docs under Window Geometry and QWorkspace. Much of it applies even if you are not using MDI objects.

Pay particular attention to the difference between pos(), frameGeometry(), and geometry() as this will likely apply to your problem.