My item derived from QGraphicsItem plots a large set of small rectangles. I want those rectangles to be in a scale-invariant, fixed size (in pixels). The item itself, however, still needs to inherit the transformations from the parents, so I cannot use QGraphicsItem::ItemIgnoresTransformations.
As the paining has to be very efficient (lots of rectanlges at a high update rate), it would probably be the best if I plotted them as points with QPainter::drawPoints(). However, I was not yet able to figure out a way to make the width of a QPen transformation independant. Basically, what I'd need was a cosmetic pen with a width of not 1, but maybe 5 pixels.
Anybody got any idea how to solve this problem?
Bookmarks