I would like to set the QT QDockWidget DockWidgetClosable property using a StyleSheet . However it's is inside 'features' property.
How can I change it using stylesheets?
I tried it without success.
For instance.
QDockWidget{
qproperty-floating:false;
qproperty-windowTitle:omg12;
}
Sets the parameter "floating" and "windowTitle" to those respective values. but I haven't found a key to set the "DockWidgetClosable" value.
Since QDockWidget
is pretty much considered a "class" in the .qss stylesheet - and if you want to modify the DockWidgetClosable
property of all QDockWidget
- you'll have to change the values of all the QDockWidget
classes like so:
.QDockWidget{
DockWidgetClosable: true;
}