Results 1 to 2 of 2

Thread: QML Swipe gesture overrides other components

  1. #1
    Join Date
    Apr 2012
    Posts
    21
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default QML Swipe gesture overrides other components

    As a swipe gesture handler in my app, I used code from here: https://gist.github.com/kovrov/1742405

    The SwipeArea component is used on a page with couple of buttons and text input components, and here comes the problem.
    After applying SwipeArea to page, it gets highest priority and I can't access any other control that is beneath this SwipeArea.
    Only accepted gestures are swipe left and right, and no button can be pressed or text insesrted in text input control.

    Any advice?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QML Swipe gesture overrides other components

    It seems "SwipeArea" is a regular "MouseArea" so either position it under the other components or make it ignore all the events it gets so that they propagate to items underneath.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Swipe gesture not recognized
    By Luc4 in forum Qt Programming
    Replies: 2
    Last Post: 16th December 2014, 15:13
  2. How to make label swipe-able?
    By chong_kimkeang in forum Newbie
    Replies: 10
    Last Post: 11th October 2012, 04:03
  3. QByteArray overrides
    By squidge in forum Qt Programming
    Replies: 6
    Last Post: 11th January 2010, 10:43
  4. QGtkStyle - Ignores QPalette color overrides
    By chezifresh in forum Qt Programming
    Replies: 1
    Last Post: 9th July 2009, 01:49
  5. Qwt overrides Widget background
    By garfield in forum Qwt
    Replies: 1
    Last Post: 18th December 2007, 08:16

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.