Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. 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. Can they only be sorted in the order in which they were created?

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 4 Posters 510 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cuijg
    wrote on last edited by
    #1

    529f31ee-ec35-476e-a068-851004f41a20-image.png

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      3
      • QtFriend2024Q Offline
        QtFriend2024Q Offline
        QtFriend2024
        wrote on last edited by
        #3

        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.

        Pl45m4P 1 Reply Last reply
        0
        • QtFriend2024Q QtFriend2024

          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.

          Pl45m4P Offline
          Pl45m4P Offline
          Pl45m4
          wrote on last edited by
          #4

          @QtFriend2024

          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


          If debugging is the process of removing software bugs, then programming must be the process of putting them in.

          ~E. W. Dijkstra

          1 Reply Last reply
          0
          • C cuijg has marked this topic as solved on

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved