I am trying to implement vertical tabs with horizontal text with QT but I cannot find any similar option in QTabWidget.
Somebody in SO asked for something similar here, however, the answers contain broken links and I doubt that they present a real solution.
Anybody has been able to do that?
So my solution to fix this styling issue is:
Code:
apptabbar.h
apptabbar.cpp
apptabcontrol.h
apptabcontrol.cpp
And now the final part:
The result:
Everything works well now.
You have to implement a custom
QTabBar
overwriting thetabSizeHint()
andpaintEvent()
methods as shown below: