
Qt
文章平均质量分 93
遇见里哦
a'a'a
展开
-
颜色 QML 基本类型
By aSVG color name, such as "red", "green" or "lightsteelblue". By a hexadecimal triplet or quad in the form"#RRGGBB"and"#AARRGGBB"respectively. For example, the color red corresponds to a triplet of"#FF0000"and a slightly transparent blue to a qua...翻译 2021-12-18 13:33:16 · 1491 阅读 · 0 评论 -
将Qt应用程序打包成可安装的软件
打包软件下载地址:http://pan.baidu.com/s/1dDQHqoD第一步:首先,生成release的版本,并将应用程序用到的动态库都拷贝到应用程序所在的目录下,并保证该应用程序在该目录下可以直接运行;如下图第二步:安装完该打包软件之后,打开该软件这个就是打包之后的安装文件;第三步:安装该...转载 2019-07-26 16:54:04 · 535 阅读 · 1 评论 -
Qt5::QCamera查询和设置摄像头的分辨率和帧率
查询摄像头支持分辨率的APIQCamera::supportedViewfinderResolutions() 查询摄像头支持帧率的APIQCamera::supportedViewfinderFrameRateRanges() 设置摄像头采集分辨率和帧率的APIvoid setViewfinderSettings(const QCameraViewfinderSetti...原创 2019-08-18 17:43:38 · 9516 阅读 · 0 评论 -
获取window任务栏运行程序图标和标题
1、写回调函数:static BOOL CALLBACK StaticEnumWindowsProc(HWND hwnd, LPARAM lParam){ GetWindowText(hwnd, app_name, sizeof(app_name)); //获取窗口名称 HICON hIcon = (HICON)GetClassLong(hwnd, GCL_...原创 2019-08-09 17:55:37 · 2410 阅读 · 1 评论 -
windows 下使用Qt抓取桌面和鼠标
QPixmap MainWindow::grabWindow(HWND winId, int x, int y, int w, int h){ RECT r; GetClientRect(winId, &r); if (w < 0) w = r.right - r.left; if (h < 0) h = r.bottom - r.top; HDC display_dc = GetDC(winId); HDC bitmap_dc = CreateComp原创 2019-08-15 17:40:00 · 3097 阅读 · 2 评论