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

hide tab in Qt

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 3.4k 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.
  • N Offline
    N Offline
    neeraj2012
    wrote on last edited by
    #1

    How to hide tab from Qtabwidget in Qt

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      Hi,

      you can use removeTab() and then addTab() again to show it.

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        ... and you can do your tabs "tabsClosable"

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          Apart from removing tabs, there currently is no function to hide a tab. A patch against Qt 5 to add this functionality was recently "welcomed":http://lists.qt-project.org/pipermail/development/2012-March/002828.html but it will only appear in Qt 5.1.

          1 Reply Last reply
          0
          • N Offline
            N Offline
            neeraj2012
            wrote on last edited by
            #5

            Thanks for the reply sir

            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