- 博客(21)
- 收藏
- 关注
原创 ico图片用不了报错:logo.ico is not in 3.00 format
【代码】ico图片用不了报错:logo.ico is not in 3.00 format。
2025-09-02 14:54:43
149
原创 QT QComboBox 样式
* 项文本居中 */qproperty-alignment: AlignCenter;/* 水平和垂直都居中 *//* 箭头靠左 *//* 清除默认选中背景 */qproperty-alignment: AlignCenter;/* 全局居中 *//* 移除焦点虚线框 */padding: 8px;/* 左右无内边距 */padding: 8px;/* 项内边距 *//* 箭头宽度 */right: 12px;/* 向左微调 */
2025-06-05 17:29:14
453
原创 注册表打不开?打开就闪退?
如果没有:写个bat文件命名:gpedit.bat,然后运行等待加载完成即可。此时再win+r gpedit.msc就会有。设置-》windows更新与安全-》设备安全,把里面所有安全全部关闭变成这样。2、win+r ,gpedit.msc,看是否出现如图。
2025-04-21 18:54:49
1074
原创 qt c++ 报错:error: Allocation of incomplete type ‘Ui::ConnectWidgets
xxx.ui里有不属于编辑器的参数。ui_xxx.h没有生成。
2025-04-11 17:23:29
209
原创 C++打印log
auto rx = boost::xpressive::sregex::compile("日志昵称Log-(20\\d\\d-\\d\\d-\\d\\d)\\.log");strftime(buf, sizeof(buf), "日志昵称Log-%Y-%m-%d.log", &tmDest);Log(kDebug, u8"删除{}", it->path().string());log_path_ /= "\\日志昵称Log";* 写日志,字符串使用UTF-8编码。* 写日志,字符串使用UTF-8编码。
2025-04-02 16:06:08
1580
原创 qt c++ 防止程序多开
/用于限制进程重复启动。std::string VDIEventStr=u8"防止多开程序昵称";msgBox.setText(u8"不能重复启动!msgBox.setText(u8"创建失败!
2025-04-02 16:01:01
458
原创 qt c++ 自动适应分辨率缩放比
/ 注册 Qt::ApplicationState 类型。1.在main函数里添加:支持高分辨率。2.在窗口函数里添加:更新页面。
2025-04-02 15:52:15
300
原创 qt c++ 弹窗置顶,即使点击也不消失
setWindowModality(Qt::ApplicationModal); // 设为模态窗口setWindowFlags(warnbox->windowFlags() | Qt::WindowStaysOnTopHint);
2025-03-26 13:35:43
167
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅