2 Attachment(s)
QDockWidget::title is painting over other widgets with QSS
Hi QT community.
I have a QDockWidget, which has a QFrame inside it (it's actually a QScrollArea) and I need to change their styles according to what the designer asked.
He asked that the title be a box, smaller than the width of the QDockWidget, with round corners, etc.
So I tried to do it with QT's qss system. Then I'm now stuck with this:
Attachment 4423
The left is a QTabWidget, in which I could do the frame line pass in the middle of the title. I did that with this qss:
So I tried doing the same with the QFrame inside the QDockWidget:
Code:
margin-top: -5px; /* top actually does nothing, so I tried to switch to margin-top */
}
But I get the following results:
Attachment 4424
The border of the QFrame is hidden by the QDockWidget title.
Any help is appreciated, be it in code or qss.
Thanks for any help.