本页内容

qmake 手册

qmake 工具有助于简化跨平台开发项目的构建流程。它能自动生成 Makefile,因此只需几行信息即可创建每个 Makefile。无论软件项目是否使用 Qt 编写,您都可以使用 qmake。

qmake 会根据项目文件中的信息生成 Makefile。项目文件由开发人员创建,通常比较简单,但针对复杂项目也可以创建更复杂的项目文件。

qmake 包含支持 Qt 开发的附加功能,会自动包含moc和uic 的构建规则。

qmake 还可以为 Microsoft Visual Studio 生成项目,而无需开发人员修改项目文件。

目录

© 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.