I'm trying to style my QDockWidget
so that it has a border when docked and when floating.
I tried:
QDockWidget
{
border: 5px solid purple;
}
But this only produced a border when floating. When docked, the border just disappeared.
How can I solve this?
Try
QDockWidget > QWidget {
border: 5px solid purple;
}
This is the result for the docked state:
This is the result for the undocked state:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With