I am learning to use the Qt Stylesheet to add different styles to my application. I looked online and saw the Qt Documentation which said that you can use something called ID Selector
that can apply the theme to certain objects. This is how I implemented this feature :
QPushButton#button
{
color:red;
}
But it doesn't work. It only works when I try without the ID Selector
:
QPushButton
{
color:red;
}
Why doesn't this work ? I used copy and paste, so I'm 100% sure that I didn't got the name wrong.