In the object viewer of Qt Designer, it is not possible to drag the controls to adjust their order. Can they only be sorted in the order in which they were created?
-
In the object viewer of Qt Designer, it is not possible to drag the controls to adjust their order.
Correct
Can they only be sorted in the order in which they were created?
They are sorted in alphabetical order of the object name by default, not order of creation. The table headers can be used to reverse the sort order or sort on Class. If you truly want to reorder these for some purpose, you can rename the objects so that alphabetical order works. For example, aa_label and ba_listWidget. You are limited to valid C++ variable naming though.
Widget order here is not related to Tab order if that is your actual concern.
-
Through the UI Designer, right-click on the object to open the Context Menu. Select Send to Back or Send to Front to stack the objects he way you like them in he UI Designer. However, stacking specified via code is more consistent and trumps stacking specified via UI Designer.
-
Through the UI Designer, right-click on the object to open the Context Menu. Select Send to Back or Send to Front to stack the objects he way you like them in he UI Designer. However, stacking specified via code is more consistent and trumps stacking specified via UI Designer.
I think this was not the question. Stacking widgets on top or below each other has nothing to do with the order in which the widgets are listed
-
C cuijg has marked this topic as solved on
