Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-102010

QScroller prevents QAbstractItemView::DoubleClicked edit trigger

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P1: Critical
    • Resolution: Unresolved
    • Affects Version/s: 6.2.2, 6.2.4
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      Following code works fine with Qt 5.15.2 but not in Qt 6.2.2

      • I can't double click cells to edit them. Kinetic scrolling is working

      ModelViewGesture.zip

      ui->listView->setEditTriggers(QAbstractItemView::DoubleClicked);
      ui->listView->setModel(new QStringListModel(this));
      
      QStringList list;
      for(int i = 0; i < 50; i++)
      {
         list << QString::number(i);
      }
      qobject_cast<QStringListModel*>(ui->listView->model())->setStringList(list);
      QScroller::grabGesture(ui->listView, QScroller::LeftMouseButtonGesture);
      
      

      Is there something what i should do differently or is this a bug?

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            markom80 Marko Moilanen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes