[Qt-interest] QGraphicsItem ignore scene translation/transform?
Ross Bencina
rossb-lists at audiomulch.com
Fri Jan 22 16:57:16 CET 2010
Samuel Rødal wrote:
> Another option would be to not have these items be graphics items, but
> just draw them at static positions in QGraphicsView::drawForeground().
> Then override graphics view's event handlers and only pass them on to
> the QGraphicsView base class if the event is not meant for any of the
> foreground "items".
It might even be possible to have a second QGrpahicsScene or QGraphicsView
which you paint into the existing view in QGraphicsView::drawForeground(),
or some variation of that -- embed a second non-scrolling QGraphicsView
inside the QAbstractScrollArea as a peer of the current viewport, make it
transparent and ignore mouse events.
Ross.
More information about the Qt-interest-old
mailing list