Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.0.0 Beta 1, 5.0.0 RC 1, 5.0.0
-
None
-
OS X 10.7.4
-
-
c12b4f26852bc885217ae5ddcd105d88a502328a
Description
ExtendedSelection mode does not work in OS X. Shift-click and command-click don't extend selection, only select the new item.
The following code works in 4.8. It also works in 5.0 on Windows.
#include <QtWidgets> 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
Issue Links
- is required for
-
QTBUG-27426 Qt 5.0 Final release tasks
- Closed
-
QTBUG-27319 Qt 5.0 Beta 2 tasks
- Closed