How to insert QTabBar in Qt Designer?

This may be a very stupid question, but I cannot find the QTabBar in Qt Designer. There is QTabWidged in the Containers group, but it’s not the same thing: I don’t need different pages, I just need a tab bar.

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

+7
source share
2 answers

There is no element in the designer that is a QTabBar , the only way you could do this is to create a simple QWidget and push it to the tab, but then you will need to configure all this in the code.

As for the pages you understand, you can also promote QTabWidget content widgets in the designer to any subclass of QWidget, built-in, or something you created.

+3
source

In Qt Designer 4.8, you can add the widget that you want QTabBar to be in, then right-click and select "Promote to β–Έ QTabBar". (Note: Promote, not Morph Into)

+1
source

All Articles