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. disable tabs it tab widgit?
Forum Updated to NodeBB v4.3 + New Features

disable tabs it tab widgit?

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 3 Posters 2.3k Views 2 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.
  • Shadowblitz16S Offline
    Shadowblitz16S Offline
    Shadowblitz16
    wrote on last edited by
    #1

    does anybody know how to disable tabs in the tab widget so I can manually switch tabs when the toolbar icons associated with each mode is clicked?

    I tried doing a borderless window way but that creates additional tabs on my window taskbar.

    K 1 Reply Last reply
    0
    • Shadowblitz16S Shadowblitz16

      does anybody know how to disable tabs in the tab widget so I can manually switch tabs when the toolbar icons associated with each mode is clicked?

      I tried doing a borderless window way but that creates additional tabs on my window taskbar.

      K Offline
      K Offline
      koahnig
      wrote on last edited by koahnig
      #2

      @Shadowblitz16
      Did you try setTabEnabled?

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      0
      • Shadowblitz16S Offline
        Shadowblitz16S Offline
        Shadowblitz16
        wrote on last edited by Shadowblitz16
        #3

        no I will thankyou
        EDIT: sorry I should rephrase my question.
        I want to hide the tabs not disable them. when I said disable I meant only by clicking.

        EDIT2: I have also just tried "ui->tab->hide()" and the tabs are still visible

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

          Hi,

          Then why use a QTabWidget ? A QStackedWidget sounds more fitting.

          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
          2
          • Shadowblitz16S Offline
            Shadowblitz16S Offline
            Shadowblitz16
            wrote on last edited by
            #5

            I figured I could just move the tabs off screen. that way I can still use them but only by the toolbar.
            btw I was wondering if it possible to achieve the tab effect with the toolbar? I know it sounds silly but I like the look of it.

            basicly I want the tool buttons to stay held down when I am in a certain tab.

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

              QTabWidget is basically a QTabBar on top of a QStackedWidget.

              Just take one thing into account: if you are implementing this for other people, you are not following the platform guidelines which might throw off your application users.

              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
              0
              • Shadowblitz16S Offline
                Shadowblitz16S Offline
                Shadowblitz16
                wrote on last edited by
                #7

                oh ok I will do a QStackedWidget then.
                thankyou for the info.

                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