当前位置:网站首页>Get Qt installation information: including installation directory and various macro addresses
Get Qt installation information: including installation directory and various macro addresses
2022-08-11 03:52:00 【Autodesk_Glodon】
The installation information of Qt can be obtained through qmake or QLibraryInfo class.
1. Using QMake
Execute cmd to enter the console page, and then execute the command:
qmake -query
The effect is as follows:
Second, using QLibraryInfo
You can use the location function of the QLibraryInfo class in the program to get the installation information of Qt.
QString QLibraryInfo::location(QLibraryInfo::LibraryLocation loc);
Available enumeration parameters:
enum LibraryLocation{PrefixPath = 0,DocumentationPath,HeadersPath,LibrariesPath,LibraryExecutablesPath,BinariesPath,PluginsPath,ImportsPath,Qml2ImportsPath,ArchDataPath,DataPath,TranslationsPath,ExamplesPath,TestsPath,#ifdef QT_BUILD_QMAKESysrootPath,SysrootifyPrefixPath,HostBinariesPath,HostLibrariesPath,HostDataPath,TargetSpecPath,HostSpecPath,HostPrefixPath,LastHostPath = HostPrefixPath,#endifSettingsPath = 100};
边栏推荐
- Detailed explanation of VIT source code
- [ADI low-power 2k code] Based on ADuCM4050, ADXL363, TMP75 acceleration, temperature detection and serial port printing, buzzer playing music (lone warrior)
- 【愚公系列】2022年08月 Go教学课程 035-接口和继承和转换与空接口
- 论文精度 —— 2017 CVPR《High-Resolution Image Inpainting using Multi-Scale Neural Patch Synthesis》
- 【FPGA】day19-二进制转换为十进制(BCD码)
- 电商项目——商城限时秒杀功能系统
- LeetCode814算题第15天二叉树系列值《814 二叉树剪枝》
- 音频编解码,利用FAAC来实现AAC编码
- Watch to monitor
- 多串口RS485工业网关BL110
猜你喜欢
[C Language] Getting Started
使用jackson解析json数据详讲
es-head插件插入查询以及条件查询(五)
STC8H开发(十五): GPIO驱动Ci24R1无线模块
QueryDet: Cascading Sparse Query Accelerates Small Object Detection at High Resolution
[FPGA] Design Ideas - I2C Protocol
LeetCode刷题第10天字符串系列之《125回文串验证》
【FPGA】day22-SPI protocol loopback
Is Redis old?Performance comparison between Redis and Dragonfly
机器学习是什么?详解机器学习概念
随机推荐
The impact of programmatic trading and subjective trading on the profit curve!
Detailed explanation of VIT source code
获取Qt的安装信息:包括安装目录及各种宏地址
When EasyCVR is connected to the GB28181 device, what is the reason that the device is connected normally but the video cannot be played?
What is Machine Reinforcement Learning?What is the principle?
Redis老了吗?Redis与Dragonfly性能比较
Audio codec, using FAAC to implement AAC encoding
Will oracle cardinality affect query speed?
程序化交易与主观交易对盈利曲线的影响!
机器学习怎么学?机器学习流程
Map中的getOrDefualt方法
Qnet弱网测试工具操作指南
The custom of the C language types -- -- -- -- -- - structure
【FPGA】abbreviation
oracle的基数会影响到查询速度吗?
Leetcode 108. 将有序数组转换为二叉搜索树
Rotary array problem: how to realize the array "overall reverse, internal orderly"?"Three-step conversion method" wonderful array
UNI-APP_iphone bottom safe area
AI+医疗:使用神经网络进行医学影像识别分析
Unity2D animation (1) introduction to Unity scheme - animation system composition and the function of use