Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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?
@IknowQT
Why you need stylesheet when you use the paintEvent anyway? How does your paintEvent look like? Do you call the base implementation of QPushButton::paintEvent afterwards? It could overwrite your custom style
paintEvent
QPushButton::paintEvent