[Qt-interest] QGraphicsItem: Transformation
Ollie
saurero at gmail.com
Tue Nov 10 10:39:49 CET 2009
Hi,
I'm reimplementing QGraphicsView::drawItems to transform (translate,
rotate and scale) my QGraphicsItems stored in a QGraphicsScene using
the following code snipet
drawItems(QPainter *painter, int numItems, QGraphicsItem *items[],
const QStyleOptionGraphicsItem options[])
{
painter->save();
painter->resetTransform();
painter->translate(10, 10);
QGraphicsView::drawItems(painter, numItems, items, options);
painter->restore();
}
Once the QGraphicsItems have moved I 'm no longer able to select them,
the items don't receive any mousePressEvent. What am I missing ...?
Thanks, Ollie
More information about the Qt-interest-old
mailing list