Hello Seppo, Instead of subclassing QmlApplicationViewer, did you ever tried to just subclass a QDeclarativeView, and add the given code from your link to that subclass ? It should work.
Cheers, Lucien Le mercredi 6 mars 2013 10:48:15 Seppo Tiainen a écrit : > What I have been missing most in QML is multitouch support. Only Qt 5.0 has > QML MultiPointTouchArea but Sailfish is using Qt 4.8. In Harmattan, I was > able to read multiple touch points by Lauri Jääskeläinen's QmlMultiTouch > code ( > http://www.developer.nokia.com/Community/Blogs/blog/lauri-jaaskelas-forum-no > kia-blog/2011/02/03/raw-multitouch-pointer-events-in-qml) where a new class > (TouchApplicationViewer) is inherited from > QmlApplicationViewer, and viewportEvent(QEvent*) method is reimplemented. > The code also implements a class MultiTouch which exposes a list of touch > points to QML. > > Now that I'm planning to port my app from Harmattan to Sailfish I'm having > problems dealing with view and installing multitouch in main.cpp of > Sailfish/Silica. Any ideas how to do that? Or, would it be possible to have > a TouchArea library or plugin for Sailfish QtCreator (next update)? I think > being able to easily deal with multiple touch points in QML is one of the > key features needed while developing interesting Qt apps for modern > smartphones. A sample code for main.cpp or Sailfish QtCreator lib > upgrade/plugin would be great! > > - tiptyper _______________________________________________ SailfishOS.org Devel mailing list