当前位置:网站首页>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 -queryThe 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};边栏推荐
- 【FPGA】名词缩写
- 高度塌陷问题的解决办法
- 【FPGA】SDRAM
- .NET自定义中间件
- shell监视gpu使用情况
- Element's BFC attribute
- [ADI low-power 2k code] Based on ADuCM4050, ADXL363, TMP75 acceleration, temperature detection and serial port printing, buzzer playing music (lone warrior)
- .NET 服务注册
- STC8H开发(十五): GPIO驱动Ci24R1无线模块
- QueryDet: Cascading Sparse Query Accelerates Small Object Detection at High Resolution
猜你喜欢

LeetCode刷题第17天之《3 无重复字符的最长子串》
![[FPGA] Design Ideas - I2C Protocol](/img/ad/7bd52222e81b81a02b72cd3fbc5e16.png)
[FPGA] Design Ideas - I2C Protocol

LeetCode Brush Questions Day 11 String Series "58 Last Word Length"

高校就业管理系统设计与实现

A large horse carries 2 stone of grain, a middle horse carries 1 stone of grain, and two ponies carry one stone of grain. It takes 100 horses to carry 100 stone of grain. How to distribute it?

QueryDet:级联稀疏query加速高分辨率下的小目标检测

【FPGA】设计思路——I2C协议

Day20 FPGA 】 【 - block the I2C read and write EEPROM

Basic understanding of MongoDB (2)

STC8H开发(十五): GPIO驱动Ci24R1无线模块
随机推荐
QueryDet:级联稀疏query加速高分辨率下的小目标检测
E-commerce project - mall time-limited seckill function system
高校就业管理系统设计与实现
蹭个热度-请勿打开
What is ensemble learning in machine learning?
轮转数组问题:如何实现数组“整体逆序,内部有序”?“三步转换法”妙转数组
【FPGA】abbreviation
MYSQLg高级------聚簇索引和非聚簇索引
.NET自定义中间件
元素的BFC属性
Qnet Weak Network Test Tool Operation Guide
Interchangeability and Measurement Technology—Surface Roughness Selection and Marking Method
大马驮2石粮食,中马驮1石粮食,两头小马驮一石粮食,要用100匹马,驮100石粮食,如何分配?
Map中的getOrDefualt方法
js 将字符串作为js执行代码使用
EasyCVR接入海康大华设备选择其它集群服务器时,通道ServerID错误该如何解决?
Enter the starting position, the ending position intercepts the linked list
树莓派入门(5)系统备份
What problems should we pay attention to when building a programmatic trading system?
Is Redis old?Performance comparison between Redis and Dragonfly