本页内容

参考

“参考”部分详细描述了可在 qmake 项目文件中使用的变量和函数。

变量参考

“变量”部分描述了 qmake 在配置项目构建过程时所识别的变量。

函数参考

qmake 函数分为两类:替换函数和测试函数。替换函数返回一个值列表,而测试函数返回一个布尔值。这些函数在两个地方实现:基本功能由内置函数提供;更复杂的函数则在特性文件库(.prf)中实现。

这些函数根据其类型分为以下几类:

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.