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. QTabWidget: how to disable all tabs
Qt 6.11 is out! See what's new in the release blog

QTabWidget: how to disable all tabs

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 1.8k 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.
  • giupignaG Offline
    giupignaG Offline
    giupigna
    wrote on last edited by
    #1

    I subclassed the TabBar in order to insert a checkbox close to each tab
    The checkbox permits to enable or disable a tab when its value is changed (the checkboxs remain enabled), but I figured out that when I uncheck all buttons, Qt reenables a tab. Infact about setTabEnabled(...), the doc says:

    Note that even a disabled tab/page may be visible. If the page is visible already, QTabWidget will not hide it; if all the pages are disabled, QTabWidget will show one of them.

    Now my question is How can I disable all tabs using the checkbox?

    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