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

QListView ExtendedSelection bug

    XMLWordPrintable

Details

    Description

      Step to reproduce:
      Run the program and select a small item in the first column, then press shift and click on a row on the 2nd column. The selection will contains item that should not be selected

      int main(int argc, char **argv) 
      { 
      QApplication app(argc, argv); 
      
      QStringList numbers; 
      numbers << "123456" << "123" << "1234" << "123" << "12" 
      << "123" << "1234" << "12345" << "123" << "1234567" 
      << "12" << "12" << "12" << "12" << "12"; 
      QAbstractItemModel *model = new QStringListModel(numbers); 
      
      QListView *view = new QListView; 
      view->setSelectionMode(QAbstractItemView::ExtendedSelection); 
      view->setViewMode(QListView::IconMode); 
      view->setFlow(QListView::TopToBottom); 
      view->setModel(model); 
      view->show(); 
      
      return app.exec(); 
      }
      

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            goffart Olivier Goffart (closed Nokia identity) (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes