ui->treeWidget->setColumnCount(7);
QStringList headerlist;
headerlist<<"Register"<<"Hex"<<"Bin"<<"Reset"<<"Access"<<"Address"<<"Description";
ui->treeWidget->setHeaderLabels(headerlist);
QTreeWidgetItem* topitem1 = new QTreeWidgetItem(ui->treeWidget);
topitem1->setText(0, QString("用户管理"));
QIcon icon1;icon1.addPixmap(QPixmap(":/new/prefix1/ico/attach.png"));
topitem1->setIcon(0, icon1);
ui->treeWidget->addTopLevelItem(topitem1);
最后修改:2023 年 08 月 24 日
© 允许规范转载