Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Repaint widget while resizing
FriSam last edited by
Into a QMainWindow I have a QWidget that draw a QImage (to simulate a video).
But when I resize the window without releasing the mouse button (after move) update() or repaint() haven't effects on the QWidget.
Yet, update() or repaint() method is called by a slot.
How to repaint the widget while resizing ?
I'm working on Qt Creator 2.6.1 with Qt 5.0.0 on OS X 10.8.2.
QMartin last edited by
Have you tried reimplementing the window's resizeEvent() forcing your widget repaint()? But be careful. Read the "docs advice":https://qt-project.org/doc/qt-4.8/qwidget.html#repaint