02 2024 档案

摘要:#include <iostream> #include <memory> using namespace std; struct ParenTask // 父亲 { string name{}; }; typedef shared_ptr<ParenTask> ParenTaskPtr; stru 阅读全文
posted @ 2024-02-22 23:04 雾枫 阅读(18) 评论(0) 推荐(0) 编辑
摘要:QTreewidget::item { height: 30px; width:30px } 阅读全文
posted @ 2024-02-18 14:46 雾枫 阅读(372) 评论(0) 推荐(0) 编辑
摘要:QScrollArea#MyqtWidgetStyle_m_scrollArea { background-color: rgb(189,97,99); max-width :190px; /* 最大宽度 */ min-width :190px; /* 最大宽度 */ } QWidget#MyqtW 阅读全文
posted @ 2024-02-13 22:18 雾枫 阅读(245) 评论(0) 推荐(0) 编辑
摘要:// 设置自动调整大小 m_scrollarea->setWidgetResizable(true); 阅读全文
posted @ 2024-02-13 19:40 雾枫 阅读(149) 评论(0) 推荐(0) 编辑
摘要:void MainWindow::paintEvent(QPaintEvent *event) { QPainter painter(this); painter.setPen(QPen(Qt::darkYellow,2)); // 设置当前画笔的颜色,和画笔大小,单位像素 QRect rect = 阅读全文
posted @ 2024-02-13 16:40 雾枫 阅读(151) 评论(0) 推荐(0) 编辑
摘要:QLabel#m_title { color:white; font-family: "New Century Schoolbook"; /* 设置字体 */ font-size: 40px ; /* 设置字体大小 */ font-style: italic; /* 设置字体倾斜 */ font-w 阅读全文
posted @ 2024-02-12 20:08 雾枫 阅读(767) 评论(0) 推荐(0) 编辑
摘要:QLabel#m_icon { border-image: url(:/res/haiyang.png); /* 图片路径 */ min-width : 40px; /* 最小宽度 */ min-height : 40px; /* 最小高度 */ max-width : 40px; /* 最大宽度 阅读全文
posted @ 2024-02-12 19:56 雾枫 阅读(1681) 评论(0) 推荐(0) 编辑
摘要:// 头文件 #ifndef TITLEBAR_H #define TITLEBAR_H #include <QWidget> #include <QPoint> //坐标点 #include <QMouseEvent> //鼠标事件 class TitleBar : public QWidget 阅读全文
posted @ 2024-02-11 22:59 雾枫 阅读(146) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示