How to combine stylesheet descendant selector with property selector?
-
I had expected the following would work:
*[styleAsPresetPanel="true"] QPushButton, *[styleAsPresetPanel="true"] QCheckBox { /* stylesheet */ }This would mean that
stylesheetwould need to apply to anyQPushButtonorQCheckBoxthat is a descendant of any object that has the dynamic propertystyleAsPresetPanelset totrue.Am I trying to do something that is simply not possible, or do I need to change the syntax?
-
I just noted that without the '*' it does work, in other words, the following works:
QFrame[styleAsPresetPanel="true"] QPushButton, QFrame[styleAsPresetPanel="true"] QCheckBox { /* stylesheet */ }Allthough this is enough for me to continue for now, my original question remains. I'd expect this to work with the '*' as well, but that doesn't seem to work. Is that a bug I should file, or are my expectations wrong?