I have a QScrollArea fathering my awesome scrolling widget. I like to do updates on the contents on various occasions.
For this I did an override of paintEvent(QPaintEvent *)
. Then everytime I want it to be done I call update()
on the widget.
Problem: paintEvent()
is never called by this!
What I tried in troubleshooting so far:
- Use
repaint()
instead ofupdate()
. Should call it instantanously. Unfortunately does not. - Test for
isVisible()
andupdatesEnabled
- Test wether my override is correct. Resizing the window calls my function. Only my manual update(), repaint() calls fail.
- Implement a QTimer to trigger update() or repaint() every 500ms. The trigger gives text output, the function is not called.
Anybody got an idea what to check next? What could make repaint() not call paintEvent()?