[Qt-interest] how to make QGraphicsView updated as soon as possible?
Mihail Naydenov
mlists at ymail.com
Sat Feb 12 09:08:54 CET 2011
Theoretically, you can try calling repaint() on the View or View's viewport().
Feedback if that worked.
MihailNaydenov
>
>From: "Zhao, Halley" <halley.zhao at intel.com>
>To: "qt-interest at trolltech.com" <qt-interest at trolltech.com>
>Sent: Sat, February 12, 2011 4:26:42 AM
>Subject: [Qt-interest] how to make QGraphicsView updated as soon as possible?
>
>
>After QGraphicsItem::update() is executed, there is some delay to
>QGraphicsItem::paint() is called.
>
>This is not vital for common UI, but for a 30fps video frame update, this delay
>introduce many issue.
>
>How could I make QGraphicsView updated as soon as possible?
>Could I change the event loop to schedule the repaint as soon as possible?
>
>
>There is also a similar issue for Qt::QueuedConnection, there is visible delay
>to invoke a method by QMetaObject::invokeMethod(this, method,
>Qt::QueuedConnection);
>Could I reduce the delay?
>(I can’t use Qt::DirectConnection because I need some code runs in Qt thread).
>
>thanks
>ZHAO, Halley (Aihua)
>Email: halley.zhao at intel.com
>Tel: +86(21)61166476 iNet: 8821-6476
>SSG/OTC/Moblin 3W038 Pole: F4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110212/6fe5dff6/attachment.html
More information about the Qt-interest-old
mailing list