Florian Blume
Florian Blume

Reputation: 3345

Edit background color of widget in palette editor of QT Creator

I would like to change the background color of a QWidget in the graphical designer of QT Creator. I know how to do it programmatically and know how to edit all other colors, like the ones for text, etc. But the color palette editor doesn't seem to have an option for background color. Can someone point out what I'm missing here?

PS: I searched a lot but of course only ended up with coded solutions, but I'd like to avoid as much coding as possible for the view setup.

NO background color option here

Upvotes: 2

Views: 8904

Answers (2)

Florian Blume
Florian Blume

Reputation: 3345

Thanks to ni1ight I found out that you have to set the Window-role color to the desired color in the color palette editor and also check autofill background color.

Upvotes: 1

marouane18
marouane18

Reputation: 105

First : Click on StyleSheet

Click

Then click on add color and choose your background color or whatever

enter image description here

Upvotes: 6

Related Questions