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. Can we create multiple tabs in Central Widget of QT QMain Window
Forum Updated to NodeBB v4.3 + New Features

Can we create multiple tabs in Central Widget of QT QMain Window

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 5 Posters 1.8k Views 3 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.
  • Q Offline
    Q Offline
    Qt Enthusiast
    wrote on last edited by
    #1

    Can we create multiple tabs in Central Widget of QT GUI

    RatzzR 1 Reply Last reply
    0
    • Q Qt Enthusiast

      Can we create multiple tabs in Central Widget of QT GUI

      RatzzR Offline
      RatzzR Offline
      Ratzz
      wrote on last edited by
      #2

      @Qt-Enthusiast
      Are you looking something like this http://doc.qt.io/qt-5/qstackedwidget.html ?

      --Alles ist gut.

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

        Hi,

        Or QTabWidget ?

        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
        • Q Offline
          Q Offline
          Qt Enthusiast
          wrote on last edited by
          #4

          can we make QTabWidget as central widget

          jsulmJ 1 Reply Last reply
          0
          • Q Qt Enthusiast

            can we make QTabWidget as central widget

            jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @Qt-Enthusiast yes

            https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • Q Offline
              Q Offline
              Qt Enthusiast
              wrote on last edited by
              #6

              can some one share with me the application where central widget is made as QTabWidget

              RatzzR 1 Reply Last reply
              0
              • Q Qt Enthusiast

                can some one share with me the application where central widget is made as QTabWidget

                RatzzR Offline
                RatzzR Offline
                Ratzz
                wrote on last edited by
                #7

                @Qt-Enthusiast

                Take a look at Tab Dialog Example a subclass of QDialog .

                --Alles ist gut.

                1 Reply Last reply
                1
                • mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Hi
                  There is really nothing to it.

                  you can just do

                  auto tw = new QTabWidget (this);
                  tw->addTab(new QWidget, "first");
                  setCentralWidget( tw );
                  
                  1 Reply Last reply
                  3

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved