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.)


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.


In Qt Designer 4.8 you can add a Widget where you want the QTabBar to be, and then right-click and choose "Promote To ▸ QTabBar". (Note: "Promote To", not "Morph Into")

链接地址: http://www.djcxy.com/p/51832.html

上一篇: Lucene 3.0.3不会删除文件

下一篇: 如何在Qt Designer中插入QTabBar?