Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Repaint widget while resizing

Repaint widget while resizing

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    FriSam
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • Q Offline
      Q Offline
      QMartin
      wrote on last edited by
      #2

      Hello!

      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

      Regards

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved