[Qt-jambi-interest] QListWidget question
José Arcángel Salazar Delgado
arcangel.salazar at gmail.com
Tue Aug 5 18:17:40 CEST 2008
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
>> Qt-jambi-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-jambi-interest
>>
>>
>
>
More information about the Qt-jambi-interest
mailing list