上一页 1 2 3 4 5 6 7 8 9 10 ··· 31 下一页
摘要: #include "mainwindow.h" #include <qpainter.h> #include <QDebug> #include <QPainterPath> #include <QtWinExtras> #include <QRectF> #include <QDesktopWid 阅读全文
posted @ 2024-01-01 00:25 雾枫 阅读(208) 评论(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 雾枫 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 先代码设置MainWindow图标: // 主要用于在linux下运行程序时,在任务栏显示图标MainWindow w; w.setWindowIcon(QIcon(":/res/icon.png")); (*windows下设置生成的exe程序的ico图标后,默认也会对运行程序时任务栏的图标也设置 阅读全文
posted @ 2023-12-27 21:54 雾枫 阅读(341) 评论(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 雾枫 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 1、先制作xx.ico格式的图标 2、创建发ico.txt格式的a56爆大奖在线娱乐文件,输入内容: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 雾枫 阅读(154) 评论(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 雾枫 阅读(6) 评论(0) 推荐(0) 编辑
摘要: /* 整个垂直滚动条区域样式 */ QScrollBar:vertical { border: none; background: rgb(30, 30, 30); width: 10px; margin: 0px 0 0px 0; } /* 整个水平滚动条区域样式 */ QScrollBar:ho 阅读全文
posted @ 2023-12-17 18:32 雾枫 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 自定义折叠控件,h头文件 #ifndef QUESTIONBANKWIDGET_H #define QUESTIONBANKWIDGET_H #include <QWidget> #include <QVBoxLayout> #include <QHBoxLayout> #include <QToo 阅读全文
posted @ 2023-12-16 19:53 雾枫 阅读(762) 评论(0) 推荐(0) 编辑
摘要: /**菜单栏**/ QMenuBar{ background:rgb(50, 74, 86); color:rgb(253,253,253); } /*工具栏*/ QToolBar{ background:rgb(50, 74, 86); } /*工具栏按钮*/ QToolButton{ backg 阅读全文
posted @ 2023-12-15 11:31 雾枫 阅读(30) 评论(0) 推荐(0) 编辑
摘要: viewer->realize();//需要realize,否则窗口为null osgViewer::GraphicsWindow *pWnd = dynamic_cast<osgViewer::GraphicsWindow*> (viewer->getCamera()->getGraphicsCo 阅读全文
posted @ 2023-11-21 15:23 雾枫 阅读(104) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 31 下一页