Hello guys.
I am having trouble with QTabWidget:
I can't add multiple widgets with addTab nor insertTab.
even when I try something like:
self.widget1 = QListWidget()
self.widget2 = QPushButton("Foo")
self.widget3 = QLabel("Bar")
self.tabs = QTabWidget()
layout = QVBoxLayout()
layout.addWidget(self.widget1)
layout.addWidget(self.widget2)
layout.addWidget(self.widget3)
self.tabs.addTab(layout, "Foobar")
It will raise an error that the first argument (layout) is wrong. :/
Please, any help?