when enable Touch Screen in QListWidget double click event not work



  • 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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.