i just can find any example in the internet how to loop and get each item in the QListWidget. i need something like this : ( this is not working example ) :
Code:
{ }
again this is not working
Printable View
i just can find any example in the internet how to loop and get each item in the QListWidget. i need something like this : ( this is not working example ) :
Code:
{ }
again this is not working
QListWidget is not a list in a container way, it's a simple list view.
Take a look at the QListWidget documentation and you can find there how to access the items within QListWidget.
Hi, this works:
Code:
for (int i = 0; i < ui->listWidget->count(); i++) { }