How can I get the index position of an Item on a QListWidget and delete it knowing only its index?
-
How can I get the index position of an Item on a QListWidget and delete it knowing only its index?
thanks -
Hi,
Are you think of something like
@QListWidgetItem *item = listWidget->takeItem(index.row())@
?
-
what is distinctiveness of item which is you needed its index pos? if answer is item->text() you can use QListWidget::findItems() at first.
Than ...
EDIT:there are many ways to done it .eg by loops.