题目详情
填空题 程序分析题:已知程序运行界面如图所示,未使用界面设计师,请在主窗口构造函数中填空,以完成界面的设计.
MainWindow::MainWindow(QWidget *parent): QMainWindow(parent),ui(new Ui::MainWindow) { ui->setupUi(this); this->setWindowTitle("ch7exam2_2"); QToolButton *toolBtn = new QToolButton(ui->mainToolBar); toolBtn->setText(tr("退出")); ;//添加工具栏 QCalendarWidget *calendar=new QCalendarWidget(this); ;//calendar填充中心区域 (new QLabel("永久信息"));//状态栏显示永久信息 }

学科:默认课程
时间:2025-12-02 23:57:15
