[Qt-interest] QMainWindow size...
OS Prog
osprog at gmail.com
Mon Aug 10 15:18:14 CEST 2009
Hi,
I'd like to initialize some graphics in QMainWindow's constructor. I want to
set the Main window with exact geometry:
MainWindow::MainWindow(...)
:QMainWindow
{
setMinimumSize(SCREEN_WIDTH, SCREEN_HEIGHT);
setMaximumSize(SCREEN_WIDTH, SCREEN_HEIGHT);
...... do something .....
qDebug("width():%d",width());
qDebug("\theight():%d",height());
...... do something .....
}
,but at 'qDebug()' I've got the different geometry. It seems that these 2
functions are asynchronous... Is that correct?
How can I set the window geomettry synchronous or before the MainWindow
claas is creatred?
Regards,
Nikolay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090810/3f42229c/attachment.html
More information about the Qt-interest-old
mailing list