Search code examples
qtqt-creatorbackground-color

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


Solution

  • 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.