上一页 1 2 3 4 5 6 7 8 9 10 ··· 33 下一页
摘要: 一、标准库中的数值极限 #include <limits> auto max = numeric_limits< char> ::max(); 二、断言 #include <assert.h> assert((" 这里错误 ", 2 + 2 == 5)); 阅读全文
posted @ 2024-03-26 15:12 雾枫 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 原文地址 最关键的一步,要通过命令行打开安装软件 阅读全文
posted @ 2024-03-20 23:31 雾枫 阅读(36) 评论(0) 推荐(0) 编辑
摘要: vec.erase(remove(vec.begin(), vec.end(), 3), vec.end()); 阅读全文
posted @ 2024-03-01 09:46 雾枫 阅读(8) 评论(0) 推荐(0) 编辑
摘要: #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 雾枫 阅读(375) 评论(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 雾枫 阅读(249) 评论(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 雾枫 阅读(154) 评论(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 雾枫 阅读(776) 评论(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 雾枫 阅读(1694) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 33 下一页
点击右上角即可分享
微信分享提示