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. Qt 5.6 - QWidget::repaint() does not trigger a repaint before returning

Qt 5.6 - QWidget::repaint() does not trigger a repaint before returning

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 640 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.
  • X Offline
    X Offline
    x6herbius
    wrote on last edited by
    #1

    In certain areas of my application I need to call QWidget::repaint() in order to re-render a frame in OpenGL, so that I can access the depth buffer information at that particular instance in time. Initially I was using QWidget::update(), but later determined that repaint() was required as it ensured that the refresh happened immediately instead of being scheduled for the near future.

    This method worked fine in Qt 5.5.1 that I used to be running - however, after updating to Qt 5.6 repaint() just seems to act like update() instead. I verified this by putting a breakpoint within my paintGL() function and on the invocation of repaint() - the paintGL() breakpoint was not hit before repaint() returned, when previously this was the case.

    Am I missing something important, or is this a bug?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Can you make a small compilable example that reproduces that behavior change ?

      You also might want to take a look at the bug report system to see if there's something mentioning that.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      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