QStringList headText;
headText << "文件名" << "类型" << "大小" << "总行数" << "代码行数" << "注释行数" << "空白行数" << "路径";
QList<int> columnWidth;
columnWidth << 130 << 50 << 70 << 80 << 70 << 70 << 70 << 150;
QPushButton *button = parentWidget->findChild<QPushButton *>("button1");标签:headText,Qt,parentWidget,columnWidth,button,知识,QList From: https://blog.51cto.com/u_15515702/5789425
QList<QPushButton *> allPButtons = parentWidget.findChildren<QPushButton *>();