当前位置:网站首页>获取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
};
边栏推荐
- Enter the starting position, the ending position intercepts the linked list
- Interchangeable Measurement Techniques - Geometric Errors
- Getting Started with Raspberry Pi (5) System Backup
- 树莓派入门(5)系统备份
- 作业8.10 TFTP协议 下载功能
- Get the length of the linked list
- uni-app - 获取汉字拼音首字母(根据中文获取拼音首字母)
- leetcode刷题第13天二叉树系列之《98 BST及其验证》
- What kind of programming trading strategy types can be divided into?
- [FPGA] Design Ideas - I2C Protocol
猜你喜欢

电力机柜数据监测RTU

"Life Is Like First Seen" is ill-fated, full of characters, and the contrast of Zhu Yawen's characters is too surprising

常用认证机制

互换性与测量技术-公差原则与选用方法

【FPGA】名词缩写

I didn't expect MySQL to ask these...

Basic understanding of MongoDB (2)

Kubernetes集群搭建Zabbix监控平台

LeetCode刷题第16天之《239滑动窗口最大值》

A simple JVM tuning, learn to write it on your resume
随机推荐
Docker 链接sqlserver时出现en-us is an invalid culture错误解决方案
Typescript study notes | Byte Youth Training Notes
watch监听
高校就业管理系统设计与实现
Paper Accuracy - 2017 CVPR "High-Resolution Image Inpainting using Multi-Scale Neural Patch Synthesis"
二叉树相关代码题【较全】C语言
阿里低代码框架 lowcode-engine 之自定义物料篇
Build Zabbix Kubernetes cluster monitoring platform
LeetCode热题(12.买卖股票的最佳时机)
Leetcode 669. 修剪二叉搜索树
机器学习是什么?详解机器学习概念
Detailed explanation of VIT source code
STC8H development (15): GPIO drive Ci24R1 wireless module
typedef定义结构体数组类型
What is third-party payment?
Watch to monitor
【FPGA】设计思路——I2C协议
C语言之自定义类型------结构体
Differences and connections between distributed and clustered
What kind of programming trading strategy types can be divided into?