[SOLVED] listwidget. remove an item not by index but by the name
in the listwidget, how to remove the name of the item instead of the index number because the index number is not known. for example, in the listwidget, an item called "test" is added, eg, ui->listWidget->addItem("test"). how to remove that item without using an index number. i would simply like to remove the item "test" instead.
You have to search for the item and get the index. Then you can remove it:
thank you Gerolf. findItems worked.