Results 1 to 2 of 2

Thread: QGLWidget flickering on geometry transitions

  1. #1
    Join Date
    May 2011
    Location
    Zaragoza
    Posts
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default QGLWidget flickering on geometry transitions

    Hello,

    I have a custom QGLWidget, as child of a QWidget, and I locate it manually, not assisted by a layout.
    When doing a geometry transition, I mean, change geometry (or resize + move) from rectangle1 to rectangle2, inside parent area, I have a flicker effect.
    If I trace at resizeGL and paintGL, it happens only what it should, no bad sizes or bad positions, but the bad visual effect is still there.
    If I change my QGLWidget by a QWidget to draw the same (losing performance, but it is other story), i works perfect on geometry transitions.
    Transitions are: change geometry (size + position), 15 times every 500 milliseconds, enough for eye to see continuous and not saturating CPU.

    Qt 4.8.
    Platform: It happens exactly the same on WinXP, Win7 and MacOSX 10.6, what makes me think it is something i am doing bad

    I searched into the manuals, of course, and I think is is related to the attribute Qt::WA_PaintOnScreen, set by default for QGLWidget.
    I searched into the forums, but no luck.

    thank you,
    pellex
    Last edited by danipellex; 13th March 2014 at 09:34.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QGLWidget flickering on geometry transitions

    Please provide an example code demonstrating the problem.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 5
    Last Post: 7th October 2010, 20:47
  2. Animated QTollBox transitions
    By NutMonkey in forum Qt Programming
    Replies: 1
    Last Post: 9th July 2010, 13:57
  3. Flickering problem
    By yagabey in forum Qt Programming
    Replies: 2
    Last Post: 5th May 2010, 12:25
  4. Flickering
    By Pembar in forum Qt Programming
    Replies: 2
    Last Post: 19th May 2009, 19:21
  5. flickering x-scale
    By sun in forum Qwt
    Replies: 2
    Last Post: 1st October 2008, 07:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.