What exactly are you "sorting"? How are you calling the sort? If you are trying to sort widgets then it won't workWell... actually it will sort them but nothing in Qt expects widgets to be sorted so if you're hoping for some automatic behaviour, nothing like that will happen.
Bookmarks