0
votes

Simple as the question title, I have a QTabWidget and I wanted to set the background color for the QTabBar area, and this is how I do it:

ViewTabs->tabBar()->setStyleSheet("background-color: rgb(85,85,85)");

I expected this to set the back ground for the whole bar, but instead it sets the background on tabs only as in the attached picture.

enter image description here

How do I make the background color take effect even beyond the tabs? I'm using QT 5.7 with C++.

1

1 Answers

0
votes

You can try to change the background color manually in the UI interface by clicking on "palette" in the proprieties. It's easier to handle colors this way.