Results 1 to 2 of 2

Thread: QGraphicsItem flickering problems

  1. #1
    Join Date
    Jan 2010
    Location
    Istanbul, Turkey
    Posts
    10
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QGraphicsItem flickering problems

    I was wondering why the flickering problems occur for animated QGraphicsItems.

    I'm drawing graphs with node/edges. Nodes are animated (by scaling up/down) when clicked. During the animation, edges are moved to adapt the new position of the node. But this movement causes flickering.

    It's a bit hard for me to provide a minimal example so I was wondering if anybody has experience with this issue to guess the reason for that.

    I used edge.prepareForGeometryChange() for all edges but it did not solve the problem completely.

    I tried to update the scene at each last frame of the animation but it did not solve the problem completely either.

    Then after recording this video, I updated the bounding rect for the edges when nodes positions changed.

    All these methods seemed to improve the flickers but still some flickering remains. In general, few of the edges have flickering but if I move any of the nodes, flickering becomes common although I apply update for bounding rects and the scene.

    Here's a video demonstration:



    Does anybody have an opinion how to get over this? If no answers would come, I'll have to spend some time o provide minimal example.

    Thanks,
    Last edited by aladagemre; 6th November 2010 at 12:30.

  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: QGraphicsItem flickering problems

    You obviously have problems with boundingRects of items. You can see that you have some artifacts here and there.
    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. problems with qgraphicsview and qgraphicsitem
    By sqarpi in forum Qt Programming
    Replies: 3
    Last Post: 22nd August 2010, 20:06
  2. Flickering problem
    By yagabey in forum Qt Programming
    Replies: 2
    Last Post: 5th May 2010, 13:25
  3. Flickering
    By Pembar in forum Qt Programming
    Replies: 2
    Last Post: 19th May 2009, 20:21
  4. QtOgreFramework flickering with qt 4.5
    By Angelo Moriconi in forum Qt Programming
    Replies: 2
    Last Post: 6th April 2009, 11:52
  5. Problems with QGraphicsItem and Overiding methods
    By Terabyte in forum Qt Programming
    Replies: 10
    Last Post: 27th December 2008, 18:45

Tags for this Thread

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.