I want to add borders to a QDockWidget
using an external QSS
file.
This is what I have:
And this is what I want:
I've tried using:
QDockWidget {
border: 5px solid red;
}
but it doesn't work at all;
If I am using the designer by right clicking on the QDockWidget
and choosing Change stylesheet
and I use border: 5px solid red;
inside the dialog everything works fine.
But I want to use an external QSS
file.
Is it possible to attach a QSS
file to my widget and border it as wanted?
Found the solution:
QDockWidget > QWidget {
border: 5px solid red;
}
Good luck!