Reputation: 3104
How can I add a layout but not a widget inside a QtGui.QTabWidget? Something like this:
QtGui.QTabWidget
tabs = QtGui.QTabWidget() tabs.addTab(QtGui.QVBoxLayout(), "Layout")
Upvotes: 0
Views: 1714
Reputation: 206699
You don't add layouts to a tab widget, you add widgets.
The simplest choice here would be a QFrame (or even a plain QWidget), to which you can set whatever layout you want.
QFrame
QWidget
Upvotes: 2