Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Why the form layout messed?
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.
@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").
This post is deleted!
@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.
@jsulm yes, the parent layout is vertival