QML ListView multiselection

How to select multiple items in a QML ListView and send its indexes to C ++ code?

+3
source share
3 answers

I am sure there is no way to make a multi-user QML ListView. Qt Declarative is focused on using the touch screen, and there is no point in multitasking in a clean touch user interface.

+2
source

Do something like this: if you click on an element, set its property (or, as you call it), and set in deletion that if true is selected, then it should be formatted differently. Also add it to the list to work with it.

+5

You can try to get the ListItem data and save it in the array with an odd click and delete the ListItem data from the array even when you click. It can be a simple workout, instead of creating a list of flags, such as items.

+1
source

Source: https://habr.com/ru/post/1768379/


All Articles