会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
麦田
不积跬步无以至千里.
博客园
::
首页
::
博问
::
闪存
::
新随笔
::
联系
::
订阅
::
管理
::
公告
2023年3月9日
setCentralWidget(new QGraphicsView());
摘要: setCentralWidget(new QGraphicsView());
阅读全文
posted @ 2023-03-09 15:08 一些记录
阅读(60)
评论(0)
推荐(0)
QT浮动窗口和菜单项绑定显示和隐藏
摘要: #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)
QMessageBox 模态框
摘要: 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 的使用 官方帮助文档的例子
摘要: //内容显示 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)
QT流程图
摘要:
阅读全文
posted @ 2023-03-09 11:08 一些记录
阅读(282)
评论(0)
推荐(0)
QT在MainWindow里面 设置状态栏
摘要: //状态栏 QStatusBar *statusbar = new QStatusBar(this); setStatusBar(statusbar);
阅读全文
posted @ 2023-03-09 11:00 一些记录
阅读(113)
评论(0)
推荐(0)
QGraphicsView的scale方法 可以缩小 放大
摘要: view_->scale(2.0,2.0); //放大两倍 view_->scale(0.5,0.5); //缩小两倍 view_->resetMatrix(); //重置
阅读全文
posted @ 2023-03-09 10:57 一些记录
阅读(397)
评论(0)
推荐(0)
QT菜单项里面的子菜单做工具栏切换
摘要: #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)