QTabWidget、QListWidget、QStackedWidget
The QTabWidget class provides a stack of tabbed widgets. More...
The QListWidget class provides an item-based list widget. More...
QStringList strlist;
strlist<<"系统"<<"外观"<<"截图"<<"贴图";
for (int i = 0;i<strlist.size();i++) {
//ui->listWidget->insertItem(i,strlist.at(i));
QListWidgetItem *pItem = new QListWidgetItem();
pItem->setSizeHint(QSize(100,100));
pItem->setTextAlignment(Qt::AlignCenter);
pItem->setText(strlist.at(i));
ui->listWidget->insertI
原文地址:https://blog.csdn.net/m0_62407354/article/details/140401059
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!