Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
im trying to sory qlistwidget items
sortItems(Qt::AscendingOrder); when i call this function, the items are sucessfully sorted but i have to trigger an event (ie. right click on listwidget,leftclick,or anything) before it show the sorted items.
Does it display them sorted if you call update() after sorting the items?
@Lorence Have you tried calling invalidate() on your model?
Hi,
Can you show how your are setting up your QListWidget ?
@SGaist
my QListWidget object in ui is a MyListWidget
heres my contrsuctor MyListWidget::MyListWidget(QWidget* parent) :QListWidget(parent) {
}
what do you mean by "how i set up my qlistwidget"?
@Lorence now its working, i dont know what happens yesterday