Changing QTabWidget header size
-
Hello,
I would like to change the size of my tabs in my tabWidget. I read something like this:
@tabWidget->setStyleSheet(
"color:black;"
"QTabBar::tab { height: 5px; width: 200px; }"
);@
but that does not work. What am I doing wrong? -
Use the following
@tabWidget.setStyleSheet("QTabBar::tab { color:black; height: 50px; width: 100px; }");@ -
It works, thank you! Out of curiosity, why does "color:black" have to be inside the QTabBar::tab brackets?
Thanks!
-
If you put it breaks the stylesheet syntax. Hence you need to put the right CSS syntax.