[Qt-interest] QGraphicsItem ignore scene translation/transform?
Thomas Fjellstrom
tfjellstrom at shaw.ca
Fri Jan 22 17:12:38 CET 2010
On Fri January 22 2010, Ross Bencina wrote:
> 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.
Yeah, the main issue is some items that I want to be static like that will
need to accept input, keyboard and mouse/touch events.
> Ross.
>
--
Thomas Fjellstrom
tfjellstrom at shaw.ca
More information about the Qt-interest-old
mailing list