运行 Python 应用程序

您可以直接从Qt Creator 执行Qt for Python 应用程序。如果使用新建项目向导创建应用程序项目,则在选择Run 按钮时会自动执行main.py 文件。

您可以在项目的运行设置中指定另一个要执行的文件。

Python 运行设置

另请参阅 配置运行项目创建Qt for Python 应用程序开发Qt for Python 应用程序Python 运行设置

Copyright © The Qt Company Ltd. and other contributors. 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.