Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Brainstorm
  4. How to Add Menus in QTabBar in QTabWidget
QtWS25 Last Chance

How to Add Menus in QTabBar in QTabWidget

Scheduled Pinned Locked Moved Brainstorm
4 Posts 2 Posters 5.2k 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.
  • Y Offline
    Y Offline
    Yash
    wrote on last edited by
    #1

    How can I add menus to tabs in QTabBar area in QTabWidget.

    Thank you in advance.

    http://kineticwing.com : Web IDE, QSS Editor
    http://speedovation.com : Development Lab

    1 Reply Last reply
    0
    • ? This user is from outside of this forum
      ? This user is from outside of this forum
      Guest
      wrote on last edited by
      #2

      see this "example":http://developer.qt.nokia.com/wiki/CustomTabBar, where I have a custom QTabBar to which I've set a QLabel, similarly I think you can use the setTabButton and pass it a menu ... let me know if it works ...

      1 Reply Last reply
      0
      • F Offline
        F Offline
        Felix
        wrote on last edited by
        #3

        you could also inherit from QTabbar and QTabWidget and call setTabBar(myNewTabbar) in your Tabwidget.

        1 Reply Last reply
        0
        • ? This user is from outside of this forum
          ? This user is from outside of this forum
          Guest
          wrote on last edited by
          #4

          yes felix, the same is approach is taken in the example I mentioned

          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