Results 1 to 2 of 2

Thread: QGraphicsItem update() does not call paint() after some time??

  1. #1
    Join Date
    Oct 2009
    Posts
    66
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Exclamation QGraphicsItem update() does not call paint() after some time??

    Hi All,
    I am using qt-4.7 where i am trying to render multiple videos at 30 fps on the same screen using QVideoItem and QGraphicsItem
    Qt Code:
    1. class VideoItem : public QAbstractVideoSurface,
    To copy to clipboard, switch view to plain text mode 

    I update the frame to be rendered in my class and call the update() in my code but my observation is after some time QGraphicsItem:aint() stops getting called. I am running at 90% + of system load. Are there any inputs as to why the paint() is not getting called to update the view??

    Can i try bosting the main thread priority as with system load 90+% it may stop the ui thread??

    I have no clue on this can there be some input on this.

    Thanks in Advance.

    Sudhish Kapoor
    Last edited by kapoorsudhish; 22nd November 2013 at 03:50.

  2. #2
    Join Date
    Oct 2009
    Posts
    66
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Re: QGraphicsItem update() does not call paint() after some time??

    I got this working by calling the scene->update() in the Graphics Item.

Similar Threads

  1. QGraphicsItem::update(); vs scene()->update();
    By Lord_Navro in forum Newbie
    Replies: 1
    Last Post: 25th April 2013, 07:23
  2. QGraphicsView update/paint issues
    By emanuel in forum Qt Programming
    Replies: 1
    Last Post: 21st July 2012, 02:46
  3. Help on QGraphicsItem::paint please
    By lni in forum Qt Programming
    Replies: 1
    Last Post: 18th July 2011, 09:11
  4. Replies: 1
    Last Post: 25th June 2010, 19:31
  5. Replies: 1
    Last Post: 26th December 2007, 11:58

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.