views:

60

answers:

1

Hi folks! How can I select a few elements in the QML ListView and send its indices to C++ code?

+1  A: 

I am pretty sure there is no way to make a QML ListView multi-selectable. Qt Declarative is focused on touch screen use and there is no meaningful way to multiselect in a pure touch UI.

teukkam
Of course you are free to implement a delegate that provides a mechanism to select and deselect individual items freely, but it's up to you to implement all the required concepts.
teukkam