How to fix Widget size in QSplitter?
-
I use QSplitter to layout my widgets,all the widgets are the same.I don't want to change the widget's size after the layout,but drag the QSplitter handle can change the widget's size. How can I fix the widget's size in QSplitter?
-
Do you want the parentWidget to remain fixed or the individual widgets(seperated by QSplitter)?
the parentWidget can be fixed by setFixedSize()
for the childWidgets, you need to use something else as a separator(QSplitter is meant to make resizable widgets within another widget)... There is a Vertical Line Component in Qt Designer(don't know its hard-coded equivalent, though you could use a QFrame for it)