问题
Is there any efficient way to add a batch of QStandardItem
s to a model? The model is being cleared and then I'm adding a lot of items. QtreeWidget
has addTopLevelItems ( const QList<QTreeWidgetItem *> & items )
for just this, how to optimize such addition with model / view architecture?
来源:https://stackoverflow.com/questions/19694316/qstandarditemmodel-any-efficient-way-to-add-a-batch-of-items