[Development] QGraphicScene with thousands of QGraphicItems freezes the APP
Jose
jc.fernandez.navarro at gmail.com
Wed Jan 23 20:02:31 CET 2013
Hello,
I am developing a Qt-based application. The main part of the application if
a QGraphicView widget
whose scene is populated with thousands (sometimes hundreds of thousands)
of QGraphicItems, more
precisely a subclass because to overload the "paint" function in order to
draw a circle for each item.
The problem is that the application basically freezes when I load a lot of
items.
Is this normal? Is there a limit on the number of QGraphicItems that you
can visualize?
Also, if you want QGraphicItems to respond to a certain signal, do you need
to connect
the signal to an slot for each of the items?
As an alternative, I can draw all the dots as a one single QGraphicItems
which will solve
the problem, I guees, but I would lose the interaction with the dots
individually.
Any help would be much appreciated.
Thanks in advance.
//Jose
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20130123/37628990/attachment.html>
More information about the Development
mailing list