How to Add Menus in QTabBar in QTabWidget
-
How can I add menus to tabs in QTabBar area in QTabWidget.
Thank you in advance.
-
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 ...
-
you could also inherit from QTabbar and QTabWidget and call setTabBar(myNewTabbar) in your Tabwidget.
-
yes felix, the same is approach is taken in the example I mentioned
1/4