Reputation: 3345
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.
Upvotes: 2
Views: 8904
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
Reputation: 105
First : Click on StyleSheet
Then click on add color and choose your background color or whatever
Upvotes: 6