[Qt-interest] QMainWindow size...

David Ching dc at remove-this.dcsoft.com
Tue Aug 11 04:32:03 CEST 2009


"OS Prog" <osprog at gmail.com> wrote in message 
news:trolltech.qt-interest-2a7257af0908100714t26f6dcb2g62c20b9601bd3d68 at mail.gmail.com...
> The application is intended to run on embedded in fullscreen -
> mainWindow.showMaximized();
>

This might be your issue.  showMaximized() will fill your app to the 
screen's size, and I don't think you can set anything to adjust what that 
size is (by definition, it is the screen size).  In partciular, I don't 
believe calling setMaximiumSize() affects how large your window is when it 
is maximized.  It merely sets an upper limit on how large it can grown when 
it is not maximized.

Try keeping your window NOT maximized, but set the fixed size to fill the 
entire screen according to your calculations of what that screen size should 
be, as David B. suggested.

-- David





More information about the Qt-interest-old mailing list