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 ) :
Qt Code:
{ }To copy to clipboard, switch view to plain text mode
again this is not working
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 ) :
Qt Code:
{ }To copy to clipboard, switch view to plain text mode
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:
Qt Code:
for (int i = 0; i < ui->listWidget->count(); i++) { }To copy to clipboard, switch view to plain text mode
Bookmarks