Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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;
        w.show();
    
        return a.exec();
    }
    
    


  • Changed the layout and it magically worked


Log in to reply