Solution
You can change it with a style sheet actually, but not exactly as described above.
The only way I got it working was by directly calling the qproperty-feature
and set its value to a string which contains each name of a sub-feature I want to use and separating them by the vertical bar symbol.
For example:
QDockWidget{
qproperty-features:"DockWidgetClosable | DockWidgetFloatable | DockWidgetVerticalTitleBar";
}
Where did I find this information?
Unfortunately there is no direct information available, but I discovered a little hint when reading the online documentation:
There you can find a table for the enum constants and the corresponding values. One of the table entries caught my eyes:
Constant |
Value |
QDockWidget::AllDockWidgetFeatures |
DockWidgetClosable|DockWidgetMovable|DockWidgetFloatable |
From this entry I concluded that maybe the sub-features of the qproperty-feature
can be set by their names and luckily it worked.