麦田

不积跬步无以至千里.

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2023年3月9日

摘要: setCentralWidget(new QGraphicsView()); 阅读全文
posted @ 2023-03-09 15:08 一些记录 阅读(60) 评论(0) 推荐(0)

摘要: #include "mainwindow.h" #include "ui_mainwindow.h" #include <QDockWidget> #include <QLabel> #include <QMessageBox> #include <QStackedWidget> MainWindo 阅读全文
posted @ 2023-03-09 14:53 一些记录 阅读(740) 评论(0) 推荐(0)

摘要: void MainWindow::on_pushButton_clicked() { QMessageBox *msgbox_ = new QMessageBox(this); msgbox_->setWindowTitle(tr("模态框")); msgbox_->setWindowModalit 阅读全文
posted @ 2023-03-09 11:42 一些记录 阅读(102) 评论(0) 推荐(0)

摘要: //内容显示 QMessageBox msgBox; msgBox.setText("The document has been modified."); msgBox.exec(); //选择信息框 QMessageBox msgBox2; msgBox2.setText("The documen 阅读全文
posted @ 2023-03-09 11:32 一些记录 阅读(94) 评论(0) 推荐(0)

摘要: 阅读全文
posted @ 2023-03-09 11:08 一些记录 阅读(282) 评论(0) 推荐(0)

摘要: //状态栏 QStatusBar *statusbar = new QStatusBar(this); setStatusBar(statusbar); 阅读全文
posted @ 2023-03-09 11:00 一些记录 阅读(113) 评论(0) 推荐(0)

摘要: view_->scale(2.0,2.0); //放大两倍 view_->scale(0.5,0.5); //缩小两倍 view_->resetMatrix(); //重置 阅读全文
posted @ 2023-03-09 10:57 一些记录 阅读(397) 评论(0) 推荐(0)

摘要: #include "mainwindow.h" #include <QMenu> #include <QMenuBar> #include <QToolBar> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) { QMenu 阅读全文
posted @ 2023-03-09 10:04 一些记录 阅读(347) 评论(0) 推荐(0)