1.item 選択したノードの同じ行の n 列目の項目を取得します if (item->parent()->child(item->row(), 1) == item1) // item1
の数-
>setIcon in this row (QIcon()); // 間接的にアイコンの表示と非表示を切り替える
2.item アクセスデータ
item3->setData((long long)item, Qt::UserRole + 1);
item3->data(Qt:: UserRole + 1).toLongLong();
Qt QStandardItem はコレクションを使用します
おすすめ
転載: blog.csdn.net/glc22/article/details/125564937
ランキング