Styling a QTabWidget to have the Tab-button on left side and horizontal text
-
Hello!
I am trying to figure out how make my QTabWidget look like this:
P.S. I dont use Python but C++.
I followed the example found in this code: https://forum.qt.io/topic/86186/horizontal-text-in-qtabwidget/2
But as you can see my result below is a bit different. First of all the tab text is not known. It does not matter if I change its color:
ui->setupUi(this); ui->tabWidget->tabBar()->setStyle(new CustomTabStyle); ui->tabWidget->tabBar()->setTabTextColor(0, Qt::red);
Also it seems for some reason I canot not change the width. I also wishes to make the content inside the tabs horizontal.
Thanks for guidance!
-
Hi,
Did you use the example as is ?
What version of Qt are you using ?
On what version of Windows ? -
@RobinQT
Hi
Its a little bit surprising as clean project with the Delegate gives me
Could you try test project ?
https://www.dropbox.com/s/llv3hpufux5owyh/VertTab.zip?dl=0
and see if that just works or have issues.