当前位置:网站首页>获取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
};
边栏推荐
- 程序化交易改变了什么?
- What are port 80 and port 443?What's the difference?
- 高度塌陷问题的解决办法
- How can users overcome emotional issues in programmatic trading?
- Watch to monitor
- Interchangeability Measurements and Techniques - Calculation of Deviations and Tolerances, Drawing of Tolerance Charts, Selection of Fits and Tolerance Classes
- 2022-08-10 The sixth group Hiding spring study notes
- 【愚公系列】2022年08月 Go教学课程 035-接口和继承和转换与空接口
- The thirteenth day of learning programming
- 我的 archinstall 使用手册
猜你喜欢
Echart地图的省级,以及所有地市级下载与使用
UNI-APP_iphone苹果手机底部安全区域
Qnet Weak Network Test Tool Operation Guide
LeetCode814算题第15天二叉树系列值《814 二叉树剪枝》
【愚公系列】2022年08月 Go教学课程 036-类型断言
索引的创建、查看、删除
QueryDet:级联稀疏query加速高分辨率下的小目标检测
EasyCVR接入GB28181设备时,设备接入正常但视频无法播放是什么原因?
2022-08-10 The sixth group Hiding spring study notes
Day20 FPGA 】 【 - block the I2C read and write EEPROM
随机推荐
MYSQLg advanced ------ return table
Qnet Weak Network Test Tool Operation Guide
The solution to the height collapse problem
Graphical LeetCode - 640. Solving Equations (Difficulty: Moderate)
How to delete statements audit log?
Interchangeability Measurements and Techniques - Calculation of Deviations and Tolerances, Drawing of Tolerance Charts, Selection of Fits and Tolerance Classes
Binary tree related code questions [more complete] C language
【FPGA】day21- moving average filter
2022-08-10 第六小组 瞒春 学习笔记
I didn't expect MySQL to ask these...
[FPGA] Design Ideas - I2C Protocol
怎么删除语句审计日志?
索引的创建、查看、删除
AI + medical: for medical image recognition using neural network analysis
Design and Realization of Employment Management System in Colleges and Universities
Watch to monitor
The impact of programmatic trading and subjective trading on the profit curve!
Kubernetes集群搭建Zabbix监控平台
Docker 链接sqlserver时出现en-us is an invalid culture错误解决方案
电力机柜数据监测RTU