当前位置:网站首页>获取Qt的安装信息:包括安装目录及各种宏地址
获取Qt的安装信息:包括安装目录及各种宏地址
2022-08-11 03:47:00 【欧特克_Glodon】
可以通过qmake或QLibraryInfo类获取Qt的安装信息。
一、使用QMake
执行cmd 进入控制台页面,然后执行命令:
qmake -query
效果 如下:
二、使用QLibraryInfo
可以在程序中使用QLibraryInfo类的location函数获取到Qt的安装信息。
QString QLibraryInfo::location(QLibraryInfo::LibraryLocation loc);
可使用的枚举参数:
enum LibraryLocation
{
PrefixPath = 0,
DocumentationPath,
HeadersPath,
LibrariesPath,
LibraryExecutablesPath,
BinariesPath,
PluginsPath,
ImportsPath,
Qml2ImportsPath,
ArchDataPath,
DataPath,
TranslationsPath,
ExamplesPath,
TestsPath,
#ifdef QT_BUILD_QMAKE
SysrootPath,
SysrootifyPrefixPath,
HostBinariesPath,
HostLibrariesPath,
HostDataPath,
TargetSpecPath,
HostSpecPath,
HostPrefixPath,
LastHostPath = HostPrefixPath,
#endif
SettingsPath = 100
};
边栏推荐
- Multi-merchant mall system function disassembly 26 lectures - platform-side distribution settings
- 【FPGA】SDRAM
- Interchangeable Measurement Techniques - Geometric Errors
- 索引的创建、查看、删除
- Uni - app - access to Chinese characters, pinyin initials (according to the Chinese get pinyin initials)
- The thirteenth day of learning programming
- [DB operation management/development solution] Shanghai Daoning provides you with an integrated development tool to improve the convenience of work - Orange
- EasyCVR接入海康大华设备选择其它集群服务器时,通道ServerID错误该如何解决?
- 常用认证机制
- CTO said that the number of rows in a MySQL table should not exceed 2000w, why?
猜你喜欢

【FPGA】day20-I2C读写EEPROM

console.log alternatives you didn't know about

电商项目——商城限时秒杀功能系统

【Yugong Series】August 2022 Go Teaching Course 036-Type Assertion

EasyCVR接入GB28181设备时,设备接入正常但视频无法播放是什么原因?

互换性与测量技术——表面粗糙度选取和标注方法

What should I do if the channel ServerID is incorrect when EasyCVR is connected to a Hikvision Dahua device and selects another cluster server?

一次简单的 JVM 调优,学会拿去写到简历里

【FPGA】day21-移动平均滤波器

什么是机器强化学习?原理是什么?
随机推荐
图解LeetCode——640. 求解方程(难度:中等)
The solution to the height collapse problem
Kubernetes集群搭建Zabbix监控平台
A simple JVM tuning, learn to write it on your resume
[yu gong series] Go program 035-08 2022 interfaces and inheritance and transformation and empty interface
Interchangeability Measurements and Techniques - Calculation of Deviations and Tolerances, Drawing of Tolerance Charts, Selection of Fits and Tolerance Classes
Rotary array problem: how to realize the array "overall reverse, internal orderly"?"Three-step conversion method" wonderful array
论文精度 —— 2017 CVPR《High-Resolution Image Inpainting using Multi-Scale Neural Patch Synthesis》
Differences and connections between distributed and clustered
uni-app - 城市选择索引列表 / 通过 A-Z 排序的城市列表(uview 组件库 IndexList 索引列表)
App基本框架搭建丨日志管理 - KLog
Interchangeability and Measurement Techniques - Tolerance Principles and Selection Methods
多串口RS485工业网关BL110
LeetCode814算题第15天二叉树系列值《814 二叉树剪枝》
CTO said that the number of rows in a MySQL table should not exceed 2000w, why?
Uni - app - access to Chinese characters, pinyin initials (according to the Chinese get pinyin initials)
Graphical LeetCode - 640. Solving Equations (Difficulty: Moderate)
分布式和集群的区别和联系
高校就业管理系统设计与实现
How to rebuild after pathman_config and pathman_config_params are deleted?