Asfer
24th February 2010, 13:14
Hi all,
Anybody knows if it is possible to create variables in a Qt Stylesheet (.qss)?
For instance, I know CSS accepts the following:
@variables {
myColour: #fe8d12;
}
div {
background-color: var(myColour);
}
I tried the same in qt (with QWidget instead of div) with no avail.
Any suggestions?
If it is not possible it would be a nice feature request.
Anybody knows if it is possible to create variables in a Qt Stylesheet (.qss)?
For instance, I know CSS accepts the following:
@variables {
myColour: #fe8d12;
}
div {
background-color: var(myColour);
}
I tried the same in qt (with QWidget instead of div) with no avail.
Any suggestions?
If it is not possible it would be a nice feature request.