Why the form layout messed?
-
Which platform & Qt Version. Also you don't need QFormLayout for this. You can use the VerticalLayout to arrange the UI.
-
Hi, I wanna create a dialog that allow users to type something, so I uses form layout. But it turns out to be this, what should I do next?
Thank you for your help!
-
Which platform & Qt Version. Also you don't need QFormLayout for this. You can use the VerticalLayout to arrange the UI.
@dheerendra I'm using macos mojave 10.14.1
I also tried vertical layout, it has the same issue, the problem lies in QLineEdit, when I replace it with other widget like label, everything went well.
-
@Geng.Y Did you add a layout to the parent widget where all these widgets are located?
Just right-click somewhere inside the parent widget, select "Lay out" and then one of the layouts (for example "Layout in a Grid").