[Qt-interest] QGraphicsView drag mode and MultiTouch

Phil Hannent phil at hannent.co.uk
Fri Jul 29 12:08:47 CEST 2011


Hi,

I have an drawing application which I enabled for multi-touch support.
 Users can draw paths, add QPolygonItems, etc to a QGraphicsScene.

One of the recent requests was to have a split screen mode so that students
can come up to an interactive dual touch board and compete against each
other by writing at the same time.  The request also said that the two users
should have their own toolbars for drawing, highlighting, erasing and
selecting.  Now the first three work fine, however the select mode is a
little tricky.  When toggling between a "Select" mode and a "Drawing" mode I
change the scenes view using:

m_view->setDragMode(QGraphicsView::RubberBandDrag);
or
m_view->setDragMode(QGraphicsView::NoDrag);

The problem there is that its view wide rather than specific to a
multi-touch point or in my case the left or right side of the screen.
 Currently a user of the left hand side cannot draw whilst someone on the
right is doing a lasso to select an object.

I am interested in reading other peoples opinions on solutions to this, it
seems to me that the view's drag mode is out dated in a multi touch
environment.

Regards
Phil Hannent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110729/e1d58817/attachment.html 


More information about the Qt-interest-old mailing list