Reputation: 23
I was working on a gui and I needed to change the backgroung color of the QMainWindow, I opened 'styleSheet' parameter and clicked 'Add Color' button, chose the color but it is saying 'Invalid Style Sheet'. 'Help' button gives pretty weird path.
Upvotes: 2
Views: 8748
Reputation: 244301
Many properties of QSS are of the color type such as text color, border color, etc. so when placing rgb(x, y, z)
you do not identify to which property you are setting that color. If you want to set the background color then you must use the background-color property:
background-color: rgb(238, 6, 6)
I recommend you read:
Upvotes: 4