Qt Use QTabBar in another QLayout

I have a custom QTabWidget and a custom QTabBar. Everything works fine and I can go through the tabs and stuff. But the point is, I want to place the QTabBar in a different layout than the QTabWidget. This way I can create a type of menu bar where I have tabs and a couple of different QPushButtons next to it, everything goes left to right on the same line aligned.

So basically I can move the QTabBar into a separate QHBoxLayout or QGridLayout away from the tab widget, but keep the functionality?

0


source to share





All Articles