[PySide] Can't override paintEvent on QTableWidget
frank at ohufx.com
Tue Aug 30 07:48:19 CEST 2022
I am trying to override the paintEvent in a QTableWidget to draw a custom
progressbar into the table area until the table data is loaded. I have done
this with other widgets in the past but the table widget won't let me do
I am getting these errors:
QWidget::paintEngine: Should no longer be called
QPainter::begin: Paint device returned engine == 0, type: 1
QPainter::setBrush: Painter not active
Here is a simple code snippet for testing:
When I inherit from QWidget it works fine.
Is this sort of thing not possible with a QTableWidget?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the PySide