当前位置:网站首页>获取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
};
边栏推荐
- [ADI low-power 2k code] Based on ADuCM4050, ADXL363, TMP75 acceleration, temperature detection and serial port printing, buzzer playing music (lone warrior)
- QueryDet:级联稀疏query加速高分辨率下的小目标检测
- STC8H开发(十五): GPIO驱动Ci24R1无线模块
- The development of the massage chair control panel makes the massage chair simple and intelligent
- 云平台下ESB产品开发步骤说明
- UNI-APP_iphone bottom safe area
- 分布式和集群的区别和联系
- 移动端地图开发选择哪家?
- How does MSP430 download programs to the board?(IAR MSPFET CCS)
- Get the length of the linked list
猜你喜欢
随机推荐
论文精度 —— 2017 CVPR《High-Resolution Image Inpainting using Multi-Scale Neural Patch Synthesis》
Multi-serial port RS485 industrial gateway BL110
leetCode刷题14天二叉树系列之《 110 平衡二叉树判断》
Description of ESB product development steps under cloud platform
uni-app - 获取汉字拼音首字母(根据中文获取拼音首字母)
The "top pillar" slides, and new growth is extremely difficult to shoulder the heavy responsibility. Is Ali "squatting" to jump higher?
C语言之自定义类型------结构体
When EasyCVR is connected to the GB28181 device, what is the reason that the device is connected normally but the video cannot be played?
【愚公系列】2022年08月 Go教学课程 036-类型断言
Typescript study notes | Byte Youth Training Notes
【FPGA】day22-SPI协议回环
App基本框架搭建丨日志管理 - KLog
A brief analysis of whether programmatic futures trading or manual order is better?
什么是三方支付?
什么是机器强化学习?原理是什么?
【FPGA】day20-I2C读写EEPROM
MYSQLg advanced ------ clustered and non-clustered indexes
阿里低代码框架 lowcode-engine 之自定义物料篇
Is Redis old?Performance comparison between Redis and Dragonfly
2022-08-10 The sixth group Hiding spring study notes






![Binary tree related code questions [more complete] C language](/img/85/a109eed69cd54be3c8290e8dd67b7c.png)
