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

QScroller prevents QAbstractItemView::DoubleClicked edit trigger

    XMLWordPrintable

Details

    • Windows
    • 5edb1bed3 (dev), fb09c82a2 (dev), c7205b652 (6.5), 39ab98284 (6.5), 0351fdab8 (tqtc/lts-6.2), 072f1880d (6.4), 3edc2cb54 (6.4), ab9360ae3 (tqtc/lts-6.2)

    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

        For Gerrit Dashboard: QTBUG-102010
        # Subject Branch Project Status CR V

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: