Search code examples
qtqt4qt-designer

How do I insert QTabBar in Qt Designer?


This might very well be very stupid question, but I can not find QTabBar in Qt Designer. There is QTabWidged in the "Containers" group, but it is not the same - I don't need different pages, I just need the tab bar.

(I am using 4.7.2 version of Qt Designer under KDE4 on debian.)


Solution

  • There is no item in the designer that is a QTabBar, the only way you could accomplish this is by creating a plain QWidget and promoting it to a tabbar, but you will then have to set up the whole thing in code.

    As for the pages you do realize that you can also promote the content widgets of a QTabWidget in designer to any subclass of QWidget, builtin or something that you created.