PyQt icon indicating copy to clipboard operation
PyQt copied to clipboard

qlistview中的数据如何动态刷新

Open m986883511 opened this issue 5 years ago • 1 comments

pyqt5 我知道可以删掉全部再添加所有,但有没有更高效的办法呢

m986883511 avatar May 22 '20 08:05 m986883511

@chuckbibi

892768447 avatar May 22 '20 08:05 892768447

如果是纯字符串,一般用 QStringListModel::setStringList

或者继承 QAbstractListModel 自己维护list

892768447 avatar Feb 02 '23 08:02 892768447