I want to have a list of items that need to be processed in a QListWidget . As with importing Windows Media Player CDs, there should be a progress bar for each item in the list.
Now there is a way to do this by creating a regular progress bar, using QPixmap::grabWidget() to save its appearance in QPixmap , and then adding this QPixmap as an icon in QListWidgetItem via QListWidgetItem::setIcon() . However, this seems terribly stupid.
Do you know a more elegant way to achieve a progress bar inside a list widget?
source share