Probably I can't. But I've already added ability to be stylable with
"border-image" and "border-width" qss properties, which are not allowed for QDialogs according to the docummentation. All I need to do was:
{
opt.init(this);
style
()->drawPrimitive
(QStyle::PE_Frame,
&opt,
&p,
this);
}
void MyDialog::paintEvent( QPaintEvent* event )
{
QStyleOptionFrame opt;
opt.init(this);
QPainter p(this);
style()->drawPrimitive(QStyle::PE_Frame, &opt, &p, this);
}
To copy to clipboard, switch view to plain text mode
So, I'll try to continue experiments just in case if solution is not harder than code above. Probably deep investigation of QDockWidget internals will help.
Bookmarks