Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-101219

Hidden tabs via QTabWidget::setTabVisible are still available

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.5.4, 6.6.1, 6.7.0 FF
    • 5.15
    • None
    • Windows 10
      Visual studio 2015
      Qt 5.15.2
    • Windows
    • 83e92e255 (dev), b4384dab0 (6.6), 22ab737dd (tqtc/lts-6.5)

    Description

      Since Qt 5.15, with the new API QTabWidget::setTabVisible, it is possible to hide widgets in an easier way.
      However, while the tab is properly visually hidden, the tab content itself is still available via user actions (wheel mouse or Tab key). When such a hidden tab is selected, we see the tab content in the stack and the tab itself is strangely rendered in the upper left corner of the QTabWidget. See attached screenshot where tab2 is supposed to be hidden.

      Current workaround is to call QTabWidget::setTabEnabled to make that tab really unavailable. I find this awkward and don't think this should be necessary.

      Please find attached a small project to reproduce the problem.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            haniboul Manuel Garnier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There is 1 open Gerrit change