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] Custom tabs

[SOLVED] Custom tabs

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.6k Views
  • 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hello, I would like to create custom tabs similar to "Tab Widget".... I have three areas in my mainwindow... I would like to change only middle area on a similar way such as "Tab Widgets"... Is that possible??? So when I would click a btn123, middle area would change to the correct content (exactly same way "Tab Widget" is doing it)...

    Or if there is a way edit buttons for "Tab Widget"... I don't want them to stick together and I want to use my own style for button... It should look like on image below (separated, different size,)...

    !http://img14.imageshack.us/img14/6128/ephs.png(a)!

    Default "Tab Widgets" looks like this...
    !http://qt-project.org/doc/qt-4.8/images/tabWidget-stylesheet2.png(a)!

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      I found Qt is using this as well... When you cleck on any of three buttons content in the middle changes...

      !http://img802.imageshack.us/img802/8067/5u6h.png(qt)!

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        click*

        1 Reply Last reply
        0
        • B Offline
          B Offline
          Buckets
          wrote on last edited by
          #4

          Why not use a "QStackedWidget":http://qt-project.org/doc/qt-5/qstackedwidget.html and have the buttons change the index.

          ba ba ba
          ba na na na

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            This is exactly what I've been looking for... Thank you

            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