Using variables in qt StyleSheets
问题 Is there any possibility of giving variable name to hex/rgb numbers in .qss file . For eh myColor = #FFCC08 QPushButton { background-color: myColor;} So that i can define the variable at the top of the stylesheet and use the variable name whereever required instead of using the hex code. Also if i need to change the color then i have to change in one place and it will be reflected throught the file. I also searched for Saas but don't know how it can be used in qt. Thanks :) 回答1: You could