上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 33 下一页
摘要: // 头文件 #ifndef TITLEBAR_H #define TITLEBAR_H #include <QWidget> #include <QPoint> //坐标点 #include <QMouseEvent> //鼠标事件 class TitleBar : public QWidget 阅读全文
posted @ 2024-02-11 22:59 雾枫 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 1、创建一个QWidget 对象 2、在QWidget对象内添加控件进行布局 3、给QScrollArea调用setwidget函数,设置QWidget对象。 阅读全文
posted @ 2024-01-29 11:17 雾枫 阅读(279) 评论(0) 推荐(0) 编辑
摘要: MyOpenglWidget::MyOpenglWidget(QWidget *parent) : QOpenGLWidget{parent} { auto &mysignal = MySignal::instance(); // 绘制和清空 connect(&mysignal,&MySignal: 阅读全文
posted @ 2024-01-14 19:36 雾枫 阅读(343) 评论(0) 推荐(0) 编辑
摘要: #include "mainwindow.h" #include <qpainter.h> #include <QDebug> #include <QPainterPath> #include <QtWinExtras> #include <QRectF> #include <QDesktopWid 阅读全文
posted @ 2024-01-01 00:25 雾枫 阅读(675) 评论(0) 推荐(0) 编辑
摘要: cmake_minimum_required(VERSION 3.24.2) project(test LANGUAGES CXX) set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_AUTOUIC ON 阅读全文
posted @ 2023-12-31 18:26 雾枫 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 先代码设置MainWindow图标: // 主要用于在linux下运行程序时,在任务栏显示图标MainWindow w; w.setWindowIcon(QIcon(":/res/icon.png")); (*windows下设置生成的exe程序的ico图标后,默认也会对运行程序时任务栏的图标也设置 阅读全文
posted @ 2023-12-27 21:54 雾枫 阅读(908) 评论(0) 推荐(1) 编辑
摘要: 原文链接:https://blog.csdn.net/qq_27597629/article/details/108886199#:~:text=1%EF%BC%8C%E5%88%9B%E5%BB%BA%E7%A8%8B%E5%BA%8F%E5%90%AF%E5%8A%A8%E8%84%9A%E6% 阅读全文
posted @ 2023-12-27 20:17 雾枫 阅读(379) 评论(0) 推荐(0) 编辑
摘要: 1、先制作xx.ico格式的图标 2、创建发ico.txt格式的文本文件,输入内容:IDI_ICON1 ICON "xx.ico" 将.txt后缀更改为.rc 3、在qt工程中添加资源文件res,将xx.ico和ico.rc 添加到资源文件res中 4、在CMakeLists.txt中添加内容:ad 阅读全文
posted @ 2023-12-27 14:04 雾枫 阅读(417) 评论(0) 推荐(0) 编辑
摘要: /*中央窗口央视*/ QWidget#CentralWidget{ background: rgb(237,255,243); } /*测试题管理窗口*/ QWidget#ManageTestQuestions{ /*background: rgb(0,0,0,80);*/ border-image 阅读全文
posted @ 2023-12-17 19:28 雾枫 阅读(15) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 33 下一页
点击右上角即可分享
微信分享提示