Question

The default arrangement of tab-headers in PySide.QtGui.QTabWidget using the code

tabs = QtGui.QTabWidget()
tabs.addTab(QtGui.QLabel('some label on Tab1'), 'Tab1')
tabs.addTab(QtGui.QLabel('some label on Tab2'), 'Tab2')

is horizontal. Is there a way of placing the headers vertically, i.e. below each other?

QtGui.QVBoxLayout used as

layout =  QtGui.QVBoxLayout()
tabs.setLayout(layout)

seems to apply only to the area within a tab.

Are QListWidget and QStackedWidget the alternatives to be used in this case?

Was it helpful?

Solution

Issue resolved. I found another question to satisfy my requirements: How to change text alignment in QTabWidget?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top