Wrong window size when starting the application

  • Hi!
    The project is made on Qwidget. When you start the application, not everything fits in the window, but if you rotate the screen 2 times, the widgets are rebuilt and placed in the window.
    How make a resize of application when I started ?

    int main(int argc, char *argv[])
        QApplication a(argc, argv);
        MainWindow w;
        return a.exec();

  • Changed the layout and it magically worked

Log in to reply