[Interest] How to detect moment when window/widget fully resized at startup?
Igor Mironchik
igor.mironchik at gmail.com
Mon Jan 19 09:55:27 CET 2015
Hi, again. I've found one solution. I can connect to the
QApplication::applicationStateChanged() signal and if state is
Qt::ApplicationActive the size is correct.
But I have to answer again, will this approach work on all OSes?
On Mon, 19 Jan 2015 11:48:22 +0300, Igor Mironchik
<igor.mironchik at gmail.com> wrote:
> Hi. I have one not very simple question. I need to know the size of the
> window when it launched and all Qt/OS preparations done.
>
> For example, in main() I launch QWidget::showMaximized(). On my Windows
> 7 this leads to resizeEvent( 640, 480 ) -> resizeEvent( 640, 480 ) when
> actual size of the window is( 1366, 706 ). And I don't know when to get
> the size() property of my widget to be sure that it is resized.
>
> How to detect this moment in Qt?
>
> Thank you.
>
--
Best Regards,
Igor Mironchik.
More information about the Interest
mailing list