Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions

QT Designer: unable to change Layout of a QDialog



  • Hello,

    I'm a newbie in the QT world and I tried to design some forms with QT Designer (version 5.13.0). I created my main window and then a dialog window (QDialog). But in the latter, I cannot change the main layout, all available layouts are greyed... How come? I need a main layout before I add sub-layouts on top of it.

    Regards,
    Mark



  • @Mark531
    You need to drag some widget onto the dialog (or any other widget) before it un-greys the dialog's layout choices and then lets you set it. It doesn't make sense intuitively to me, but as I discovered when struggling like you, that's how it is!



  • @Mark531
    You need to drag some widget onto the dialog (or any other widget) before it un-greys the dialog's layout choices and then lets you set it. It doesn't make sense intuitively to me, but as I discovered when struggling like you, that's how it is!



  • @JonB You're right, thanks! :)


Log in to reply