background picture of the home page

Think in Code

QWidget 和 QML窗口 相互嵌套

QWidget 和 QML窗口 相互嵌套 QWidget界面和QML窗口相互嵌套都是需要借助 quickwidgets 这个模块中的类 我这里使用的是QQuickWidget,这个类是继承QWidget的,就和 QWidget 一样使用就行 使用布局控制 控件 的位置 1. C++代码 #inclu

thumbnail of the cover of the post

去除滚动条两边箭头

效果: 这里是水平的,垂直滚动条改成 vertical,然后将 height改成width QScrollBar:horizontal { background: white; height: 13px; margin: 0; /* 去掉间隔 */ } QScrollBar

thumbnail of the cover of the post

NSIS 单实例运行安装包

NSIS 单实例运行安装包 Function .onInit ;uac提权 !insertmacro UAC_RunElevated # 禁止多个安装程序实例 Begin System::Call 'kernel32::CreateMutexA(i 0, i 0, t "Raysync C

thumbnail of the cover of the post

MacOS 获取系统语言

MacOS 获取系统语言 std::string GetLocaleLanguage() { // defaults read .GlobalPreferences AppleLanguages | tr -d ["()\\""][:space:] std::string lpath =

thumbnail of the cover of the post