Nominate our 2022 Qt Champions!

Repaint widget while resizing

  • 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.

  • Hello!

    Have you tried reimplementing the window's resizeEvent() forcing your widget repaint()? But be careful. Read the "docs advice":


Log in to reply