[Interest] QML detecting swipe gesture for open side menu

Federico Buti bacarozzo at gmail.com
Wed Apr 15 10:21:03 CEST 2015


Hi Gianluca,

you should be able to simulate swipe gestures with a MouseArea. See this
code for example <https://gist.github.com/kovrov/1742405>.

Cheers,
F.


---
Federico Buti

On 14 April 2015 at 20:27, Daiwei Li <daiweili at gmail.com> wrote:

> Here's an example of a NavigationDrawer implementation in QML that I found
> online: https://gist.github.com/jbache/2b625d40efd4c344ab20
>
> On Tue, Apr 14, 2015 at 9:26 AM, Gianluca <gmaxera at gmail.com> wrote:
>
>> Hello,
>> I’m trying to achieve something very common on the mobile app: the swipe
>> from left to right made from the left side of the screen that display the
>> lateral menu of the app.
>> I didn’t find any way to do with QML.
>> First of all, there is no SwipeGesture item into QML (while there is
>> PinchArea). (why there is no QML item for recognize the other common
>> gestures?)
>> Then I tried to cover the entire screen with a MouseArea with an high z
>> value in order to implement a simple recognizer by myself, but I didn’t
>> find any way to propagate all mouse events in order to allow to all other
>> MouseArea present behind to work properly.
>>
>> I’m blocked. I don’t have any other ideas.
>>
>> Any idea ? suggestions ?
>>
>> Thanks,
>> Gianluca.
>>
>> _______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
>>
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150415/7b2c168d/attachment.html>


More information about the Interest mailing list