Can't append all rows to QStandardItemModel
Here is code.
QList<QStandardItem*> items;
items.append(allData);
QStandardItemModel.appendRo开发者_开发问答w(items);
But, it only set first row of items..
Using appendRow() with a list of items, the items are used for the columns of a single row. If you want to have each item create a new row, use appendRows() (notice the plural).
精彩评论