[SailfishDevel] QML support of Multitouch

Seppo Tiainen seppo.tiainen at gmail.com
Thu May 2 06:34:20 UTC 2013


In addtition to generating touch events (multi or single), it seems it is
not possible to change the device orientation in the SDK's Sailfish OS
Emulator either. Is this true or is there a way to test switching between
portrait and landscape orientations?


2013/3/24 Seppo Tiainen <seppo.tiainen at gmail.com>

> Still, being able generate touch events in the next update of QtCreator's
> Sailfish OS Emulator would surely be welcomed by many...
>
> Seppo
>
>
> 2013/3/20 Seppo Tiainen <seppo.tiainen at gmail.com>
>
>> Hi Lucien and Jonni,
>>
>> Thanks for your help guys. I appreciate very much having your advice and
>> a working framework which I can use as a starting point while porting my
>> app to Sailfish OS.
>>
>> Seppo
>>
>>
>> 2013/3/19 Jonni Rainisto <jonni.rainisto at jollamobile.com>
>>
>>> Hi Seppo,
>>>
>>> Lauri's example should work pretty much unmodified, and I did a very
>>> quick hack Sailfish example code in gitorious:
>>>
>>> https://gitorious.org/sailfishtouchexample/sailfishtouchexample
>>>
>>> That seems to work at least on those armhf Sailfish devices that I have
>>> access to. For SDK that example does not work, since currently SDK does not
>>> report any QTouchEvents, ie. SDK only reports mouse events. But if at some
>>> point there is armhf rootfs released, then it might be useful to you. And I
>>> only tested portrait mode, one might or might not need to do some x y
>>> tweaking for mapping raw events other QML orientations.
>>>
>>> re, Jonni
>>> ________________________________________
>>> From: devel-bounces at lists.sailfishos.org [
>>> devel-bounces at lists.sailfishos.org] on behalf of Lucien XU [
>>> sfietkonstantin at free.fr]
>>> Sent: Wednesday, March 13, 2013 10:18 PM
>>> To: devel at lists.sailfishos.org
>>> Subject: Re: [SailfishDevel] QML support of Multitouch
>>>
>>> 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
>>> _______________________________________________
>>> SailfishOS.org Devel mailing list
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sailfishos.org/pipermail/devel/attachments/20130502/c65032dd/attachment.html>


More information about the Devel mailing list