Thanks, Jan. I thought the same thing, but it didn't help. I even called EnsurePolished() first, having seen such things in the Qt source. But it appears that adjustSize() adjusts child widgets for the current window geometry, and doesn't try to determine an accurate window geometry first.
The fundamental problem is that Qt puts off creating the native window representation (NSWindow or NSView or HWND, etc.) until it is first shown. So until then, there is nothing to measure. But it does seem as though the cached geometry could be used to return an accurate value. I guess its JIRA bug time... -John Weeks > On Sep 22, 2015, at 4:31 AM, Jan Dasselaar <j...@altus-escon.com> wrote: > > Maybe the QWidget::adjustSize() function is what you are looking for. > I think after calling adjustSize() the geometry() function should give a > up to date result. _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest