开发者

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).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜