Unsolved At the paint event after applying the style sheet to the button
-
I applied a stylesheet to the button.
And in that class I declared a paintEvent and painted the line.If you check after execution, all applied style sheets will disappear.
Is there a way to draw the drawline with the stylesheet preserved? -
Why you need stylesheet when you use the paintEvent anyway? How does your
paintEvent
look like? Do you call the base implementation ofQPushButton::paintEvent
afterwards? It could overwrite your custom style