Use QListWidgetItem::setData() not the constructor to set your value. Then all will work like you expect it to work.
EDIT: since we are in Newbie I am gentile:Qt Code:
int yourIntValue = 123456; item->setData(Qt::DisplayRole, yourIntValue);To copy to clipboard, switch view to plain text mode
Bookmarks