[Qt-interest] QGraphicsItem and Threads
Ole Streicher
ole-usenet-spam at gmx.net
Fri Oct 23 09:26:23 CEST 2009
Hi Jason,
Jason H <scorp1us at yahoo.com> writes:
> Well you bring up a good point. To change the color of many items,
> they probably have to use a shared brush. Then it is just a matter of
> fast assignment of one single brush, but then you have to iterate over
> all the objects using that brush, and reset the brush to the shared
> brush.
In my case, the objects tend to use different brushs: all 10^5 items
form a kind of "map" that displays a spacially distribution. The need to
use "QGraphicViewItems" is that the individual "pixel" of the map may
have different shapes and orientation -- a bit like the Qt demo "40000
chips", but with updating color maps.
Ciao
Ole
More information about the Qt-interest-old
mailing list