Ok I've solved the problem using the showMaximized method.
It work fine only if insert before a resize:
Why?Qt Code:
mainWindow->resize(100,100); mainWindow->showMaximized();To copy to clipboard, switch view to plain text mode
Ok I've solved the problem using the showMaximized method.
It work fine only if insert before a resize:
Why?Qt Code:
mainWindow->resize(100,100); mainWindow->showMaximized();To copy to clipboard, switch view to plain text mode
Last edited by jpn; 23rd September 2008 at 15:10. Reason: missing [code] tags
For me it works with Qt 4 without any additional tricks:
Qt Code:
#include <QtGui> int main(int argc, char* argv[]) { QWidget window; window.showMaximized(); return app.exec(); }To copy to clipboard, switch view to plain text mode
J-P Nurmi
In that case it is highly probable that the bug is on your side. It's just hidden somewhere in a big and complex project. That's why it's always a good idea to put up together a minimal compilable test application reproducing the problem.
Actually, QMainWindow IS A QWidget. And QWidget::showFullScreen() functionality is implemented in QWidget code. I doubt you can reproduce the problem with a plain QMainWindow either. If you can reproduce it with a QMainWindow subclass, then the problem might be in that subclass.However I'm working with Qt3.3.5 and window is a QMainWindow not a QWidget.
J-P Nurmi
How can I catch the signal emitted when launch mw->showMaximized()? And a way to know when resize (after showMaximized()) is completed?
Bookmarks