[Qt-interest] Move lot of QGraphicsItem or scrol the QGraphicsView ?
Pritam Ghanghas
pritam_ghanghas at infosys.com
Thu Jul 8 08:04:38 CEST 2010
Hi
What was your viewportUpdateMode when you were moving graphicsItems.
AFAIK, move items should be faster but only with
BoundingRectViewportUpdate/MinimalViewportUpdate/SmartViewportUpdate
mode. For FullViewportUpdate they should be same.
--
Thanks,
Pritam
On Wed, 2010-07-07 at 22:14 +0530, mario wrote:
> Hi all,
>
> I'm on an embedded device with wince6.
> I have a lot of QGraphicsItem (some sort of rounded rectangle with 2
> text QGraphicsTextItem inside) to move at the same time.
>
> The view is sized to show only a subset of them ( 20 of 100 ) and they
> are all aligned horizontally.
>
> At the first time I tried to resize the scene to cover all of them and
> I used the QgraphicsView's scrollbars, but it was too slow.
>
> So I resized the scene to the same size of the view, I grouped all the
> items in a QGraphicsItemGroup and set the movable flag on it. So I
> could move it with the mouse.
> Even this was too slow.
>
> Which of them is the right way?
> I can try to improve the code, but I need to know which is the best
> method (in performance speaking).
> Any hints?
> tnx
>
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are not
to copy, disclose, or distribute this e-mail or its contents to any other person and
any such actions are unlawful. This e-mail may contain viruses. Infosys has taken
every reasonable precaution to minimize this risk, but is not liable for any damage
you may sustain as a result of any virus in this e-mail. You should carry out your
own virus checks before opening the e-mail or attachment. Infosys reserves the
right to monitor and review the content of all messages sent to or from this e-mail
address. Messages sent to or from this e-mail address may be stored on the
Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***
More information about the Qt-interest-old
mailing list