#include "widget.h" #include #include #include Widget::Widget(QWidget *parent) : QWidget(parent) { this->resize(600,400); button = new QPushButton("选择文件",this); button->resize(100,100); button->move(250,100); connect(button,&QPushButton::clicked,[](){ // QString str = QFileDialog::getOpenFileName(); // qDebug()<