Hi!
I'm currently using the following code to get all items in a QListWidget:
Is there a better / faster way? I just can't find a allItems() call.Qt Code:
To copy to clipboard, switch view to plain text mode
Codepoet
Hi!
I'm currently using the following code to get all items in a QListWidget:
Is there a better / faster way? I just can't find a allItems() call.Qt Code:
To copy to clipboard, switch view to plain text mode
Codepoet
What would allItems() return?
There is a count() member so you can loop through the QListWidget items and add them to your container.
allItems would return a QList<QListWidgetItem*> containing every QListWidgetItem which is at the moment in my QListWidget without forcing me to do hundreds / thousands of calls to item(). Just something like selectedItems.
But I'll try your suggestion
My suggestion will also do that I'm afraidOriginally Posted by Codepoet
Bookmarks