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:
  1. int yourIntValue = 123456;
  2. item->setData(Qt::DisplayRole, yourIntValue);
To copy to clipboard, switch view to plain text mode