Hi,
I've spent some days now trying to add support for multitouch on Avogadro.
I've guide myself using the model you have constructed for drawtool (the mouse
and key events), but without success. In the last version I add in drawtool.h :
virtual QUndoCommand* event(GLWidget *widget, QTouchEvent *event);
and in drawtool.cpp
// QUndoCommand* DrawTool::event(GLWidget *widget,QTouchEvent *event)
// {
//qDebug<< "touch event";
// QUndoCommand *undo = 0;
// switch (event->type())
//{
//case QEvent::TouchBegin:
//{
//emit message("Touch Begin");
//break;
//}
//case QEvent::TouchUpdate:
//{
//emit message("Touch Update");
//break;
//}
//case QEvent::TouchEnd:
//{
//emit message("Touch End");
//break;
//}
////default:
////return QWidget::event(event);
// }
// return undo;
// }
but is not working since I don't know how to set Qt::WA_AcceptTouchEvents
attribute for the GLWidget send like parameter in my function.
I really appreciate an advice from you part, since I'm blocked...
Thank you very much!
Gina------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Avogadro-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/avogadro-devel