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. Preferences dialog: how to create layers of controls?
Forum Updated to NodeBB v4.3 + New Features

Preferences dialog: how to create layers of controls?

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 529 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.
  • P Offline
    P Offline
    PaulR
    wrote on last edited by
    #1

    Hi

    I am using Qt Creator to create a Preferences window. I have a TreeWidget on the left with the sections and I was planning on having a bunch of GroupBoxes on top of each other containing the various options/controls and showing/hiding them as necessary.

    Everything would work, but I have realised that dropping one GroupBox on top of another automatically makes it a child of one behind it.

    What can I do to stop this happening?

    Thanks

    Paul

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      If you want them all visible then put them in a vertical layout otherwise, you can put them in a QStackedLayout or a QStackedLayout.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      P 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi and welcome to devnet,

        If you want them all visible then put them in a vertical layout otherwise, you can put them in a QStackedLayout or a QStackedLayout.

        P Offline
        P Offline
        PaulR
        wrote on last edited by
        #3

        @SGaist : Doh! It was right there in front of me, thanks for pointing it out! QStackedLayout it is!

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You're welcome !

          Since you have what you were looking for, please mark the thread as solved using the "Topic Tools" button so that other forum users may know a solution has been found :)

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • P Offline
            P Offline
            PaulR
            wrote on last edited by
            #5

            Done, and have some of my infinite supply of upvotes too! :)

            1 Reply Last reply
            0

            • Login

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