So here I created a QListWidget, put some QListWidgetItems in it, and turned the sorting on by QListWidget::setSortingEnabled(true). Then I got such a result: 1, 10, 2, 3(sort by string)... while I had expected 1, 2, 3, ..., 10 (sort by number)

& then I searched for information through Google but only got methods of Qt3. So how to solve this problem in Qt 4.6.2?

Thanx!