To select a QListBox item use ItemIndex with the number of the item you want (mind you, it starts counting at 0). This will select ONE item only, it is not possible to highlight more than one item.
From the documentation;
ListBox.AddItems "1. Apples", "2. Oranges", "3. Bananas"
ListBox.DelItems 1,2
ListBox.Item(0) = "1. Strawberries"
What you can do is use a QButton with a command behind it that deletes the selected listbox item (something like
nr = ListBox.ItemIndex
ListBox.DelItems nr
basically).
|