Yes, it's a own subclass from QWidget. I use:
QString styleSheet
= ".myOwnClass {background-color:rgb(%1, %2, %3)}";
QString styleSheet = ".myOwnClass {background-color:rgb(%1, %2, %3)}";
To copy to clipboard, switch view to plain text mode
but it didnt' work. I think it's a problem of the syntax, because
QString styleSheet
= "QWidget {background-color:rgb(%1, %2, %3)}";
QString styleSheet = "QWidget {background-color:rgb(%1, %2, %3)}";
To copy to clipboard, switch view to plain text mode
works and
QString styleSheet
= ".QWidget {background-color:rgb(%1, %2, %3)}";
QString styleSheet = ".QWidget {background-color:rgb(%1, %2, %3)}";
To copy to clipboard, switch view to plain text mode
didn't work.
Bookmarks