You can easily create your own tiny sass:
1. Create a text file with variable definitions. Use a simple format:
@myColor =
2. In the qss file, use the variable names:
QPushButton { background-color: @myColor; min-width: @myWidth; }
3.Open both files and for each variable in the definition file change its appearance in the qss file with the value (string) from the definition file. This is a simple string replacement.
4.Apply the pre-processed qss in the application.
This is the simplest solution. You can modify the definition file and qss outside the application and apply it without recompiling the code.
Pucor
source share