在本页

指定远程 Linux 运行设置

要为所选工具包指定运行设置,请访问Projects >Run Settings

要在基于 Linux 的设备上运行和调试应用程序,必须创建从开发主机到设备的连接,并将设备配置添加到工具包。选择Manage Kits 将设备添加到工具包。

运行应用程序时,Qt Creator 会将文件复制到连接的设备上。

运行设置会显示开发主机和设备上可执行文件的路径。例如,要指定另一个应用程序启动您的应用程序,请在Alternate executable on device 字段中输入命令并选择Use this command instead

基于 Linux 的设备的运行设置

您可以在Command line arguments 字段中指定要传递给应用程序的参数。

选择Forward to local display 可在本地显示屏上显示远程运行的 X11 客户端。

以不同用户身份运行

在 Linux 和 macOS 上,在Run as user 中选择DefaultrootOther ,以不同权限构建、部署和运行应用程序。

另请参阅 "为项目激活工具包"、"配置运行项目"、"如何":为远程 Linux 开发为远程 Linux 设备开发管理工具包

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.