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

UI Stretch with QtCreator



  • I create an ui for my app with QtCreator but i cant make it stretch, when i reduce the window the QpushButton are hiding :

    normal
    reduce

    my main ui is like this :
    mainwindow.ui

    the tree of my ui is :
    tree

    how to make it stretch ??? i like the actual presentation but i can change it and for small screen the window is to large.



  • Because the three layout widgets are not added to any layout. They are child widgets of centralWidget, but they are not added to its layout.
    A widget will only be resized and moved to fit the window when it is added to a layout whose parent widget is either the window or also added to an layout whose.....(repeatedly)



  • Because the three layout widgets are not added to any layout. They are child widgets of centralWidget, but they are not added to its layout.
    A widget will only be resized and moved to fit the window when it is added to a layout whose parent widget is either the window or also added to an layout whose.....(repeatedly)



  • @Bonnie said in UI Stretch with QtCreator:

    Because the three layout widgets are not added to any layout. They are child widgets of centralWidget, but they are not added to its layout.
    A widget will only be resized and moved to fit the window when it is added to a layout whose parent widget is either the window or also added to an layout whose.....

    Thanks for help me, that works