Hi,

When my application starts up I resize it to a smaller size based on the user's system preferences. Here is the code (created with Qt-Creator):

Qt Code:
  1. GUI::GUI(QWidget *parent) : QMainWindow(parent), ui(new Ui::GUI) {
  2. ui->setupUi(this);
  3. // create menu bar, fill comboboxes, ...
  4. this->initGUIStuff();
  5. // resize the GUI according to the users system preferences
  6. this->resize(this->sizeHint());
  7. ...
  8. }
To copy to clipboard, switch view to plain text mode 

This works fine, when the application starts up on Windows, Linux or Mac OS X it is resized to a smaller size that is more appropriate. Unfortunately one can see the resize action on Mac OS X, the GUI starts up and once it is rendered to the screen it is resized.

Is there a possibility to hide the GUI until it has been set up and only then show it to the user? If tried this->setVisible(false), ..., this->setVisible(true) but that did not work.

Thanks!