do you mean firtst sort QList and then just add the content to QListWidget without sorting? I don't find any of sort() functions included to QList class. Should I do it myself? I find QListWidget sorting capability good enough for my application except for the initial problem I posted.