forked from qt-creator/qt-creator
Doc: Describe the application manager plugin
Task-number: QTCREATORBUG-30209 Change-Id: Icd40d6da99e7fa53f667745a4de32b03b1157c99 Reviewed-by: Dominik Holland <dominik.holland@qt.io>
This commit is contained in:
2
dist/changelog/changes-13.0.0.md
vendored
2
dist/changelog/changes-13.0.0.md
vendored
@@ -21,7 +21,7 @@ Adds support for Qt 6 based applications with CMake for creating, building,
|
|||||||
deploying, running, and debugging for devices that use the
|
deploying, running, and debugging for devices that use the
|
||||||
[Qt Application Manager](https://doc.qt.io/QtApplicationManager/).
|
[Qt Application Manager](https://doc.qt.io/QtApplicationManager/).
|
||||||
|
|
||||||
([Documentation](https://doc.qt.io/qtcreator/creator-overview-qtasam.html))
|
([Documentation](https://doc-snapshots.qt.io/qtcreator-13.0/creator-how-to-run-in-app-manager.html))
|
||||||
|
|
||||||
General
|
General
|
||||||
-------
|
-------
|
||||||
|
BIN
doc/qtcreator/images/qtcreator-appman-deploy-settings.webp
Normal file
BIN
doc/qtcreator/images/qtcreator-appman-deploy-settings.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
BIN
doc/qtcreator/images/qtcreator-appman-kit-selector.webp
Normal file
BIN
doc/qtcreator/images/qtcreator-appman-kit-selector.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.8 KiB |
BIN
doc/qtcreator/images/qtcreator-appman-run-settings.webp
Normal file
BIN
doc/qtcreator/images/qtcreator-appman-run-settings.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.0 KiB |
154
doc/qtcreator/src/appman/creator-appman-how-to-run.qdoc
Normal file
154
doc/qtcreator/src/appman/creator-appman-how-to-run.qdoc
Normal file
@@ -0,0 +1,154 @@
|
|||||||
|
// Copyright (C) 2024 The Qt Company Ltd.
|
||||||
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
|
||||||
|
|
||||||
|
/*!
|
||||||
|
\page creator-how-to-run-in-app-manager.html
|
||||||
|
\previouspage creator-how-tos.html
|
||||||
|
|
||||||
|
\ingroup creator-how-to-run
|
||||||
|
|
||||||
|
\title Run in Qt Application Manager
|
||||||
|
|
||||||
|
If you have set up \l{Qt Application Manager}, you can deploy, run, and
|
||||||
|
debug applications on the desktop, remote generic SSH Linux targets, or
|
||||||
|
\l{Boot2Qt}{Boot2Qt devices}. The applications can be either
|
||||||
|
\e {built-in applications} or \e {third-party applications}. The former
|
||||||
|
are part of the System UI or the base installation, while the latter
|
||||||
|
are dynamically installed, updated, and uninstalled.
|
||||||
|
|
||||||
|
\note Enable the experimental Application Manager plugin to use it.
|
||||||
|
|
||||||
|
To build a Qt Application Manager project, deploy it, and run selected apps
|
||||||
|
in the System UI:
|
||||||
|
|
||||||
|
\list 1
|
||||||
|
\li Open an application manager project.
|
||||||
|
\li In \uicontrol Projects > \uicontrol {Build & Run}, select a kit that
|
||||||
|
specifies the Qt version and the device to use.
|
||||||
|
\li Go to \preferences > \uicontrol Devices and specify a connection to
|
||||||
|
the device.
|
||||||
|
\li In \uicontrol Projects > \uicontrol {Build & Run}, specify settings
|
||||||
|
for deploying and running the application with the selected kit.
|
||||||
|
\li In the kit selector, select \inlineimage icons/run_small.png for the
|
||||||
|
run target.
|
||||||
|
\endlist
|
||||||
|
|
||||||
|
You can see command-line output in the \l {Application Output} view. You
|
||||||
|
can start, stop, and debug applications from there.
|
||||||
|
|
||||||
|
On Linux, running a multi-process application starts a new process that you
|
||||||
|
can stop. If the application uses a runtime of the type \c qml-inprocess, or
|
||||||
|
you are running on Windows or \macos, you cannot debug it as an individual
|
||||||
|
process. However, you can debug it as a part of the System UI.
|
||||||
|
|
||||||
|
Debugging works transparently if you set it up for the run target.
|
||||||
|
|
||||||
|
\section1 Application manager CMake functions
|
||||||
|
|
||||||
|
Since Qt 6.7, when using CMake as the build system, use the following
|
||||||
|
functions in the CMakeLists.txt file to indicate, which applications
|
||||||
|
to create as built-in packages and which to create as installable packages:
|
||||||
|
|
||||||
|
\list
|
||||||
|
\li \l {qt6_am_create_builtin_package}
|
||||||
|
\li \l {qt6_am_create_installable_package}
|
||||||
|
\endlist
|
||||||
|
|
||||||
|
\section1 Customize the installation
|
||||||
|
|
||||||
|
To change the settings for deploying and running the application with the
|
||||||
|
selected kit, go to \uicontrol Projects and select \uicontrol {Build & Run}
|
||||||
|
> \uicontrol Run.
|
||||||
|
|
||||||
|
\image qtcreator-appman-deploy-settings.webp {Deploy to application manager}
|
||||||
|
|
||||||
|
\section2 Automatic deployment configuration selection
|
||||||
|
|
||||||
|
In an application manager project, the targets need different deployment
|
||||||
|
mechanisms. The System UI is deployed with the \e {default deployment
|
||||||
|
configuration}, while all application manager packages use an
|
||||||
|
\e {automatic application manager deploy configuration}, which deploys only
|
||||||
|
the package itself when a installable package should be started.
|
||||||
|
|
||||||
|
The appropriate deployment configuration is automatically selected when the
|
||||||
|
current run configuration changes.
|
||||||
|
|
||||||
|
\section2 Deployment configuration
|
||||||
|
|
||||||
|
In \uicontrol Method, \uicontrol {Automatic Application Manager
|
||||||
|
Deploy Configuration} adds the necessary CMake and tool arguments, as well as
|
||||||
|
\uicontrol Targets to the effective \uicontrol Build command. You can select
|
||||||
|
the targets in the kit selector to deploy and run applications on them.
|
||||||
|
|
||||||
|
\image qtcreator-appman-kit-selector.webp {Automatically generated run targets in the kit selector}
|
||||||
|
|
||||||
|
\section2 Installation settings
|
||||||
|
|
||||||
|
In \uicontrol {Install Application Manager Package}, you can customize the
|
||||||
|
\c {install-package} command.
|
||||||
|
|
||||||
|
\QC uses the compiler from the kit (toolchain) to build the application.
|
||||||
|
Then, it installs the application package into the target system using the
|
||||||
|
\uicontrol Controller executable that must be running on the target. It
|
||||||
|
is delivered with Qt Application Manager.
|
||||||
|
|
||||||
|
In \uicontrol {Command line arguments}, the \c --acknowledge argument
|
||||||
|
automatically acknowledges the installation. If the System UI implemented
|
||||||
|
a confirmation dialog, you can remove this flag to show the dialog to the
|
||||||
|
user when installing the package.
|
||||||
|
|
||||||
|
To install some other package, select \uicontrol {Customize step}, and
|
||||||
|
then enter the path to the package file in \uicontrol {Package file}.
|
||||||
|
|
||||||
|
\section1 Application manager run settings
|
||||||
|
|
||||||
|
To specify settings for running applications, go to \uicontrol Projects >
|
||||||
|
\uicontrol {Run Settings}.
|
||||||
|
|
||||||
|
\image qtcreator-appman-run-settings.webp {Run in Qt Application Manager}
|
||||||
|
|
||||||
|
The following table summarizes the run settings for each application.
|
||||||
|
|
||||||
|
\table
|
||||||
|
\header
|
||||||
|
\li Setting
|
||||||
|
\li Value
|
||||||
|
\row
|
||||||
|
\li \uicontrol {Controller}
|
||||||
|
\li The path to the controller that installs the application package into
|
||||||
|
the target system.
|
||||||
|
|
||||||
|
When you run applications on a Boot2Qt device, you can see the device
|
||||||
|
ID here.
|
||||||
|
\row
|
||||||
|
\li \uicontrol {Application ID}
|
||||||
|
\li The ID of the \c ApplicationManager application.
|
||||||
|
\row
|
||||||
|
\li \uicontrol {Document URL}
|
||||||
|
\li The URL is passed to the started application, which can use it to
|
||||||
|
start an action, such as opening the passed file URL.
|
||||||
|
\row
|
||||||
|
\li \uicontrol {Application Manager instance ID}
|
||||||
|
\li The name of this application manager instance. Only useful if you are
|
||||||
|
running multiple instances at the same time and you need to address
|
||||||
|
them from the controller. A unique number is appended to this ID to
|
||||||
|
disambiguate instances with the same ID.
|
||||||
|
|
||||||
|
If you have several application manager instances running, you can
|
||||||
|
override the instance ID in the \c config.yaml file.
|
||||||
|
\row
|
||||||
|
\li \uicontrol {Default instance}
|
||||||
|
\li Always communicates with the default instance.
|
||||||
|
\endtable
|
||||||
|
|
||||||
|
\section1 Profile Qt Quick applications
|
||||||
|
|
||||||
|
You can use the \l{Profiling QML Applications}{QML Profiler} to find causes
|
||||||
|
for typical performance problems in your Qt Quick applications, such as
|
||||||
|
slowness and unresponsive, stuttering user interfaces. You cannot profile an
|
||||||
|
in-process runtime as an individual process.
|
||||||
|
|
||||||
|
\sa {Activate kits for a project}, {Connecting Boot2Qt Devices},
|
||||||
|
{Connecting Remote Linux Devices}, {Enable and disable plugins},
|
||||||
|
{Run on many platforms}, {Debugging}, {Profiling QML Applications}
|
||||||
|
*/
|
@@ -173,3 +173,11 @@
|
|||||||
\externalpage https://developer.android.com/studio/install
|
\externalpage https://developer.android.com/studio/install
|
||||||
\title Android Studio Installation Guide
|
\title Android Studio Installation Guide
|
||||||
*/
|
*/
|
||||||
|
/*!
|
||||||
|
\externalpage https://doc-snapshots.qt.io/applicationmanager-dev/cmake-qt6-am-create-builtin-package.html
|
||||||
|
\title qt6_am_create_builtin_package
|
||||||
|
*/
|
||||||
|
/*!
|
||||||
|
\externalpage https://doc-snapshots.qt.io/applicationmanager-dev/cmake-qt6-am-create-installable-package.html
|
||||||
|
\title qt6_am_create_installable_package
|
||||||
|
*/
|
||||||
|
@@ -9,7 +9,8 @@
|
|||||||
\title Connecting Boot2Qt Devices
|
\title Connecting Boot2Qt Devices
|
||||||
|
|
||||||
You can connect \l{Boot2Qt} devices to the development PC to run, debug,
|
You can connect \l{Boot2Qt} devices to the development PC to run, debug,
|
||||||
and analyze applications built for them from \QC.
|
and analyze applications built for them from \QC. For this, you need the
|
||||||
|
appropriate \l{http://qt.io/licensing/}{Qt license}.
|
||||||
|
|
||||||
If you have a tool chain for building applications for Boot2Qt devices
|
If you have a tool chain for building applications for Boot2Qt devices
|
||||||
installed on the development PC, you can add it to \QC. You can then
|
installed on the development PC, you can add it to \QC. You can then
|
||||||
|
@@ -60,8 +60,7 @@
|
|||||||
\li \l{Connecting Boot2Qt Devices}
|
\li \l{Connecting Boot2Qt Devices}
|
||||||
\li \l{Boot2Qt Run Settings}
|
\li \l{Boot2Qt Run Settings}
|
||||||
\li \l{Deploying to Boot2Qt}
|
\li \l{Deploying to Boot2Qt}
|
||||||
\li \l{https://doc.qt.io/qtcreator/creator-overview-qtasam.html}
|
\li \l{Run in Qt Application Manager}
|
||||||
{Qt Creator Plugin for Qt Application Manager}
|
|
||||||
\endlist
|
\endlist
|
||||||
|
|
||||||
\section1 Remote Linux
|
\section1 Remote Linux
|
||||||
@@ -77,8 +76,7 @@
|
|||||||
\li \l{Deploying to Remote Linux}
|
\li \l{Deploying to Remote Linux}
|
||||||
\li \l{Remote Linux Run Settings}
|
\li \l{Remote Linux Run Settings}
|
||||||
\li \l{Run on remote Linux devices}
|
\li \l{Run on remote Linux devices}
|
||||||
\li \l{https://doc.qt.io/qtcreator/creator-overview-qtasam.html}
|
\li \l{Run in Qt Application Manager}
|
||||||
{Qt Creator Plugin for Qt Application Manager}
|
|
||||||
\endlist
|
\endlist
|
||||||
|
|
||||||
\section1 Microcontroller Units (MCU)
|
\section1 Microcontroller Units (MCU)
|
||||||
|
@@ -1,25 +0,0 @@
|
|||||||
// Copyright (C) 2021 The Qt Company Ltd.
|
|
||||||
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
|
|
||||||
|
|
||||||
// **********************************************************************
|
|
||||||
// NOTE: the sections are not ordered by their logical order to avoid
|
|
||||||
// reshuffling the file each time the index order changes (i.e., often).
|
|
||||||
// Run the fixnavi.pl script to adjust the links to the index order.
|
|
||||||
// **********************************************************************
|
|
||||||
|
|
||||||
/*!
|
|
||||||
\page creator-commercial-overview.html
|
|
||||||
|
|
||||||
\title Commercial Features
|
|
||||||
|
|
||||||
\commercial
|
|
||||||
|
|
||||||
You can use the following \QC features if you have the appropriate
|
|
||||||
\l{http://qt.io/licensing/}{Qt license}:
|
|
||||||
|
|
||||||
\list
|
|
||||||
\li \l{https://doc.qt.io/Boot2Qt/index.html}{Boot2Qt}
|
|
||||||
\li \l{https://doc.qt.io/qtcreator/creator-overview-qtasam.html}
|
|
||||||
{Qt Application Manager} integration
|
|
||||||
\endlist
|
|
||||||
*/
|
|
@@ -81,22 +81,5 @@
|
|||||||
|
|
||||||
\endlist
|
\endlist
|
||||||
|
|
||||||
\section1 Related Topics
|
\sa {Building Applications for the Web}, {Run in Qt Application Manager}
|
||||||
|
|
||||||
\list
|
|
||||||
|
|
||||||
\li \l{Building Applications for the Web}
|
|
||||||
|
|
||||||
You can use the experimental Qt WebAssembly plugin to build
|
|
||||||
applications in WebAssembly format, to deploy them, and to
|
|
||||||
run them in a web browser.
|
|
||||||
|
|
||||||
\li \l{https://doc.qt.io/qtcreator/creator-overview-qtasam.html}
|
|
||||||
{Qt Creator Plugin for Qt Application Manager}
|
|
||||||
|
|
||||||
You can use the experimental Qt Application Manager plugin
|
|
||||||
(commercial only) to deploy, run, and debug applications on the
|
|
||||||
local Linux PC, remote generic SSH Linux targets, or
|
|
||||||
\l{Boot2Qt}{Boot2Qt devices}.
|
|
||||||
\endlist
|
|
||||||
*/
|
*/
|
||||||
|
@@ -25,12 +25,6 @@
|
|||||||
to build applications in web format and run them in web
|
to build applications in web format and run them in web
|
||||||
browsers.
|
browsers.
|
||||||
|
|
||||||
This manual also describes features that are only available if you have the
|
|
||||||
appropriate \l{http://qt.io/licensing/}{Qt license}. For more information,
|
|
||||||
see \l{Commercial Features}.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
\table
|
\table
|
||||||
\row
|
\row
|
||||||
\li {4,1} \b {\l{All Topics}{Click Here for a List of All Topics}}
|
\li {4,1} \b {\l{All Topics}{Click Here for a List of All Topics}}
|
||||||
|
@@ -37,6 +37,7 @@ excludedirs += ../../qtcreator/examples/accelbubble \
|
|||||||
../../qtcreator/examples/transitions \
|
../../qtcreator/examples/transitions \
|
||||||
../../qtcreator/src/analyze \
|
../../qtcreator/src/analyze \
|
||||||
../../qtcreator/src/android \
|
../../qtcreator/src/android \
|
||||||
|
../../qtcreator/src/appman \
|
||||||
../../qtcreator/src/baremetal \
|
../../qtcreator/src/baremetal \
|
||||||
../../qtcreator/src/cmake \
|
../../qtcreator/src/cmake \
|
||||||
../../qtcreator/src/conan \
|
../../qtcreator/src/conan \
|
||||||
|
Reference in New Issue
Block a user