José Arcángel Salazar Delgado escribió: > Florian Hübner escribió: >> Hi, >> is there a way to tell a QListWidget to select more then one element? >> I can select a single one with "setCurrentItem()" but how can I >> select more? >> >> > Hi. > I'm not sure but you cat try this: > > listView.setSelectionMode(SelectionMode.MultiSelection); > > Greetings > Arcángel > Upps, I didn't paste the last part:
listView.setSelectionMode(SelectionMode.MultiSelection); QItemSelectionModel selectionModel; selectionModel.select(index, command); //put all the index you want. listView.setSelectionModel(selectionModel); PD: I didn't test this, check the Doc. >> best regards >> Florian >> _______________________________________________ >> Qt-jambi-interest mailing list >> [email protected] >> http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest >> >> > > _______________________________________________ Qt-jambi-interest mailing list [email protected] http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
