Results 1 to 1 of 1

Thread: QListWidget gesture support

  1. #1
    Join Date
    Nov 2008
    Posts
    178
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QListWidget gesture support

    All,

    Qt 5.4 on 32-bit Ubuntu 14.04 with all updates applied. Eventually will be compiled for a Raspberry Pi with a touch screen.

    Trying a very simple experiment. One page in a stacked widget consists entirely of a QListWidget. In the code I add a bunch of items to it. Scrollbars and mouse wheel work fine to scroll the list, but having difficulty getting gesture to work. Is there a link to a working example using QScroller on a QListWidget?

    In the past, to achieve this I had to build my own custom buttons in a GraphicsScene under a GraphicsView using a hack of FlickCharm. Was hoping QScroller would finally make this possible with a simple QListWidget.

    Thanks,


    Added after 1 2 minutes:


    Fixed it. Will have to try to put together a shareable example. Basically if you happen to add both

    QScroller::grabGesture(ui->menuListWidget, QScroller::LeftMouseButtonGesture)

    and

    QScroller::grabGesture(ui->menuListWidget, QScroller::TouchGesture);

    to the same item they nuke each other.
    Last edited by RolandHughes; 18th February 2016 at 16:04.

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 implement mouse gesture by qt
    By redstoneleo in forum Qt Programming
    Replies: 0
    Last Post: 10th January 2013, 03:37
  3. How to implement mouse gesture by qt
    By redstoneleo in forum Newbie
    Replies: 0
    Last Post: 10th January 2013, 03:34
  4. Gesture Programming specs
    By scarleton in forum Qt Programming
    Replies: 3
    Last Post: 5th December 2010, 23:30
  5. Qt Pinch Gesture Support
    By Peter_APIIT in forum Qt Programming
    Replies: 1
    Last Post: 8th January 2010, 19:32

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.