远程 Linux 运行设置

Projects >Build & Run >Run >Run Settings 中指定所选套件的运行设置。

要在基于 Linux 的设备上运行和调试应用程序,必须创建从开发主机到设备的连接,并将设备配置添加到工具包。选择Manage Kits 将设备添加到工具包。有关更多信息,请参阅如何:为远程 Linux 进行开发

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

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

基于 Linux 的设备的运行设置

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

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

另请参阅 为项目激活工具包配置项目以运行工具包如何:为远程 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.