
Originally Posted by
wysota
Yes. You need to use
QStyle API to render the PE_Widget primitive.
In the paintEvent, I am already doing this:
o.initFrom(this);
style
()->drawPrimitive
(QStyle::PE_Widget,
&o,
&painter,
this);
QPainter painter(this);
QStyleOption o;
o.initFrom(this);
style()->drawPrimitive(QStyle::PE_Widget, &o, &painter, this);
To copy to clipboard, switch view to plain text mode
I needed this to get the background image to draw. Is there something else I need to add to get the border-image to draw as well?
Bookmarks