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. [SOLVED] how to setup tabs inside the dockwidget

[SOLVED] how to setup tabs inside the dockwidget

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 2.0k 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.
  • K Offline
    K Offline
    kalster
    wrote on last edited by
    #1

    i seem to have forgotten how to create tabs in the dockwidget. can someone please explain how to setup tabs to be displayed inside of the dockwidget. thank you

    1 Reply Last reply
    0
    • F Offline
      F Offline
      Forgive
      wrote on last edited by
      #2

      You can't. But you could set it's widget to a QTabWidget. (Correct me if i'm wrong).

      1 Reply Last reply
      0
      • B Offline
        B Offline
        broadpeak
        wrote on last edited by
        #3

        QTabBar will be your friend.
        Usage is the same as in another widget.

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kalster
          wrote on last edited by
          #4

          i found what i was looking for. the following code is needed to display the tab inside of the dockwidget.

          @ui->dockWidget->setWidget(tab);@

          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