[SOLVED] problem with textEdit layout
General and Desktop
7
Posts
4
Posters
3.2k
Views
1
Watching
-
i have a docked widget with a textEdit and a pushButton on it. I would like to set the textEdit width to the max width of the dock widget. the problem is when i set layout vertically or layout in a grid, the pushButton changes size and i don't want that. how to set the textEdit width to the dock widget width without resizing the pushButton? i am using the form designer
-
In Qt Designer you can put spacer in the layouts, so layout elements wouldn't get resized (the spacer will "resize"). Even if your button resizes at first within the new layout, you can always set it's max width and height, so it will be as long and tall as you want, within the layout you need him to be in.