Hi, I'm wondering how to go about implementing QListWidget::sortItems() based on different data in my custom QListWidgetItem.
For example, to be able to call sortItems(Type::ID) or sortItems(Type::Name) with both ascending and decending option but I'm having trouble figuring out how to go about doing that.
On a related note, I can't seem to find a method for getting all the QListWidgetItems in QListWidget, how would one go about getting a list of the items? Just create a basic for loop and call QListWidget::Item?
Bookmarks