会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
RedWetPlace
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
9
10
···
33
下一页
2024年3月26日
C++ 收集
摘要: 一、标准库中的数值极限 #include <limits> auto max = numeric_limits< char> ::max(); 二、断言 #include <assert.h> assert((" 这里错误 ", 2 + 2 == 5));
阅读全文
posted @ 2024-03-26 15:12 雾枫
阅读(19)
评论(0)
推荐(0)
2024年3月20日
下载安装qt6
摘要: 原文地址 最关键的一步,要通过命令行打开安装软件
阅读全文
posted @ 2024-03-20 23:31 雾枫
阅读(56)
评论(0)
推荐(0)
2024年3月1日
完全删除vector里的元素
摘要: vec.erase(remove(vec.begin(), vec.end(), 3), vec.end());
阅读全文
posted @ 2024-03-01 09:46 雾枫
阅读(12)
评论(0)
推荐(0)
2024年2月22日
c++ 通过一个临时的空的智能指针(裸指针),交换两个智能指针(裸指针)的值,注意是交换值!!!!
摘要: #include <iostream> #include <memory> using namespace std; struct ParenTask // 父亲 { string name{}; }; typedef shared_ptr<ParenTask> ParenTaskPtr; stru
阅读全文
posted @ 2024-02-22 23:04 雾枫
阅读(29)
评论(0)
推荐(0)
2024年2月18日
qt设置treewidget节点item的高度,节点间隔
摘要: QTreewidget::item { height: 30px; width:30px }
阅读全文
posted @ 2024-02-18 14:46 雾枫
阅读(508)
评论(0)
推荐(0)
2024年2月13日
qt 代码添加QScrollArea滚动区域控件,设置滚动区域窗口widget后,滚动区域和滚动条之间有间隔,原因设置的滚动区域widget的宽度和高度比QScrollArea小
摘要: QScrollArea#MyqtWidgetStyle_m_scrollArea { background-color: rgb(189,97,99); max-width :190px; /* 最大宽度 */ min-width :190px; /* 最大宽度 */ } QWidget#MyqtW
阅读全文
posted @ 2024-02-13 22:18 雾枫
阅读(347)
评论(0)
推荐(0)
Qt代码添加滚动区域 QScrollArea,setWidget后不显示原因
摘要: // 设置自动调整大小 m_scrollarea->setWidgetResizable(true);
阅读全文
posted @ 2024-02-13 19:40 雾枫
阅读(215)
评论(0)
推荐(0)
qt 去除边框去除标题栏后,自定义边框,绘制边框,设置边框,矩形,线
摘要: void MainWindow::paintEvent(QPaintEvent *event) { QPainter painter(this); painter.setPen(QPen(Qt::darkYellow,2)); // 设置当前画笔的颜色,和画笔大小,单位像素 QRect rect =
阅读全文
posted @ 2024-02-13 16:40 雾枫
阅读(236)
评论(0)
推荐(0)
2024年2月12日
Qt qss 设置字体
摘要: QLabel#m_title { color:white; font-family: "New Century Schoolbook"; /* 设置字体 */ font-size: 40px ; /* 设置字体大小 */ font-style: italic; /* 设置字体倾斜 */ font-w
阅读全文
posted @ 2024-02-12 20:08 雾枫
阅读(1122)
评论(0)
推荐(0)
Qt 样式 通过qss文件设置QLabel标签样式,设置背景图片,图片自适应控件大小,在qss中设置控件的大小。
摘要: QLabel#m_icon { border-image: url(:/res/haiyang.png); /* 图片路径 */ min-width : 40px; /* 最小宽度 */ min-height : 40px; /* 最小高度 */ max-width : 40px; /* 最大宽度
阅读全文
posted @ 2024-02-12 19:56 雾枫
阅读(2362)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
33
下一页
公告