Thanks, André.
I had considered that but was having trouble with the retching feeling in my
stomach. I may just do that after taking some dramamine!
-John Weeks
WaveMetrics, Inc.
> On Sep 23, 2015, at 1:00 AM, André Somers wrote:
>
> In the past, I have resorted to
Op 21-9-2015 om 19:33 schreef John Weeks:
> If this is a repeat, my apologies. I can't tell if I saw this arrive on the
> list!
>
>
>
> In general a QWidget that hasn't been made visible yet gives bogus results
> for QWidget::geometry(). Qt only guarantees that a call to setGeometry() will
>
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
Hello John,
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.
Hth,
Jan
On 21-9-2015 19:33, John Weeks wrote:
> If this is a repeat, my apologies. I can't tell if I saw this arrive on
If this is a repeat, my apologies. I can't tell if I saw this arrive on the
list!
In general a QWidget that hasn't been made visible yet gives bogus results for
QWidget::geometry(). Qt only guarantees that a call to setGeometry() will
result in a Resize event when the window is made visible.
In general a QWidget that hasn't been made visible yet gives bogus results for
QWidget::geometry(). Qt only guarantees that a call to setGeometry() will
result in a Resize event when the window is made visible. But we often need to
ask a window or child widget how big it is before it is made