Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. when enable Touch Screen in QListWidget double click event not work
Qt 6.11 is out! See what's new in the release blog

when enable Touch Screen in QListWidget double click event not work

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 615 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • AmrCoderA Offline
    AmrCoderA Offline
    AmrCoder
    wrote on last edited by AmrCoder
    #1

    i use this code to enable touch screen in QListWidget

        ui->listWidget->setAttribute(Qt::WA_AcceptTouchEvents,true);
        ui->listWidget->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
        ui->listWidget->setHorizontalScrollMode(QAbstractItemView::ScrollPerPixel);
        QScroller::grabGesture(ui->listWidget,QScroller::TouchGesture);
    

    the touch work great with no problem but i have a double click signal in the QListWidget when i double click on item in listwidget the double click slot not work ?
    Edit
    the problem appears especially when the items need to be scrolled but if the item's number is small not need to scroll it work fine
    How can i solve this problem
    Thanks in Advance

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved