How to Add Menus in QTabBar in QTabWidget
-
wrote on 13 Sept 2010, 05:37 last edited by
How can I add menus to tabs in QTabBar area in QTabWidget.
Thank you in advance.
-
wrote on 13 Sept 2010, 06:08 last edited by
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 ...
-
wrote on 13 Sept 2010, 07:22 last edited by
you could also inherit from QTabbar and QTabWidget and call setTabBar(myNewTabbar) in your Tabwidget.
-
wrote on 13 Sept 2010, 07:35 last edited by
yes felix, the same is approach is taken in the example I mentioned
3/4