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. Multilevel QTabWidget
Qt 6.11 is out! See what's new in the release blog

Multilevel QTabWidget

Scheduled Pinned Locked Moved Solved General and Desktop
6 Posts 2 Posters 1.3k 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.
  • T Offline
    T Offline
    Tikani
    wrote on last edited by
    #1

    Does Qt have a multilevel tab control? I have a plenty of tabs but they are grouped by categories and I want to place them like in a bookshelf

    kshegunovK 1 Reply Last reply
    0
    • T Tikani

      Does Qt have a multilevel tab control? I have a plenty of tabs but they are grouped by categories and I want to place them like in a bookshelf

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by
      #2

      Please post a diagram, a sample image (screenshot) or a more detailed description, so we can understand what exactly you mean by that.

      Read and abide by the Qt Code of Conduct

      T 1 Reply Last reply
      0
      • kshegunovK kshegunov

        Please post a diagram, a sample image (screenshot) or a more detailed description, so we can understand what exactly you mean by that.

        T Offline
        T Offline
        Tikani
        wrote on last edited by
        #3

        @kshegunov
        MultiLevelTabs

        kshegunovK 1 Reply Last reply
        0
        • T Tikani

          @kshegunov
          MultiLevelTabs

          kshegunovK Offline
          kshegunovK Offline
          kshegunov
          Moderators
          wrote on last edited by
          #4

          Are those tab levels 1 and 2 part of one control - just ordered differently, or is tab level 1 shown whenever a button of tab level 2 is clicked?

          Read and abide by the Qt Code of Conduct

          T 1 Reply Last reply
          0
          • kshegunovK kshegunov

            Are those tab levels 1 and 2 part of one control - just ordered differently, or is tab level 1 shown whenever a button of tab level 2 is clicked?

            T Offline
            T Offline
            Tikani
            wrote on last edited by
            #5

            @kshegunov
            Second case - whenever clicked

            kshegunovK 1 Reply Last reply
            0
            • T Tikani

              @kshegunov
              Second case - whenever clicked

              kshegunovK Offline
              kshegunovK Offline
              kshegunov
              Moderators
              wrote on last edited by
              #6

              You can put a tab widget inside the other tab widget, this way when switching tabs you'd get a different tab widget for each page. Another way you can do that is to have a QStackWidget for "Tab level 1" and change the page when a button from level 2 is clicked. And then have another stack widget for the tab area which would be controlled by the tab level 1 buttons. This is much more involved however and you'd need to manually manage the pages for the stack widgets.

              Read and abide by the Qt Code of Conduct

              1 Reply Last reply
              3

              • Login

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