summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2017-08-11 10:36:43 +0200
committerUlf Hermann <ulf.hermann@qt.io>2017-08-11 08:51:47 +0000
commit705c618aeb4b8da394fa6bcb170ae5b0fc77f729 (patch)
tree69bd07bbb632328a8c0d3719b913c6e82202097f /doc
parent62133696750624d16ef729da6f0528da4b2690a8 (diff)
downloadqt-creator-705c618aeb4b8da394fa6bcb170ae5b0fc77f729.tar.gz
Fix docs about QML debugging
You can only debug QtQuick 2, and you need Qt 5.0 for that. Also, the port is not well known as it's chosen at runtime, and various features of the QML inspector have been dropped. Change-Id: Ibb2fa6c4de203423c4e0cb9f240643e7354e7a34 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Andy Shaw <andy.shaw@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Diffstat (limited to 'doc')
-rw-r--r--doc/src/debugger/qtquick-debugging.qdoc39
1 files changed, 10 insertions, 29 deletions
diff --git a/doc/src/debugger/qtquick-debugging.qdoc b/doc/src/debugger/qtquick-debugging.qdoc
index 003429dc5b..53578482d8 100644
--- a/doc/src/debugger/qtquick-debugging.qdoc
+++ b/doc/src/debugger/qtquick-debugging.qdoc
@@ -37,7 +37,7 @@
\title Debugging Qt Quick Projects
- \note You need Qt 4.8 or later to debug Qt Quick projects.
+ \note You need Qt 5.0 or later to debug Qt Quick projects.
For an example of how to debug Qt Quick Projects, see
\l{Debugging a Qt Quick Example Application}.
@@ -55,17 +55,14 @@
\list 1
- \li Debugging is enabled by default for Qt 4.8, or later. For Qt 4.7,
- select \uicontrol Projects, and then select the
- \uicontrol {Enable QML debugging and profiling} check box in the \uicontrol qmake
- section in \uicontrol {Build Steps}.
+ \li Debugging is enabled by default for Qt 5.0, or later.
You might have to compile the library first, by selecting the
\uicontrol Compile link.
\image qml-link-debugging-library.png "Build Steps"
- \note Debugging requires opening a socket at a well-known port,
+ \note Debugging requires opening a socket at a TCP port,
which presents a security risk. Anyone on the Internet could connect
to the application that you are debugging and execute any JavaScript
functions. Therefore, you must make sure that the port is properly
@@ -78,7 +75,7 @@
\li Select \uicontrol {Build > Rebuild Project} to clean and rebuild the
project.
- \li To debug applications on devices, check that Qt 4.7.4, or later,
+ \li To debug applications on devices, check that Qt 5.0, or later,
libraries are installed on the device and
\l{Running on Multiple Platforms}{select the corresponding kit for the device}
before you start debugging.
@@ -107,9 +104,8 @@
\li Execute JavaScript expressions to get information about the state of
the application
- \li Change QML code and immediately see the changes at runtime
-
- \li Inspect QML code and change it temporarily at runtime
+ \li Inspect QML properties and JavaScript variables and change them
+ temporarily at runtime
\endlist
@@ -121,13 +117,8 @@
parameters (if you build the application with \QC, it automatically
uses the correct configuration):
- \list
-
- \li Qt Quick 1: \c {CONFIG+=declarative_debug}
-
- \li Qt Quick 2: \c {CONFIG+=qml_debug}
+ \c {CONFIG+=qml_debug}
- \endlist
\li Start the application with the following arguments:
@@ -210,7 +201,7 @@
\section1 Inspecting User Interfaces
When you debug complex applications, you can jump to the position in code
- where an item is defined or you can zoom into the user interface.
+ where an item is defined.
In the selection mode, you can click items in the running
application to jump to their definitions in the code. The properties of the
@@ -222,18 +213,8 @@
You can also view the item hierarchy in the running application:
- \list
-
- \li When debugging Qt Quick 1 applications, right-click an item in the
- running application to view the item hierarchy as a context menu.
-
- \image qml-observer-context-menu.png "QML item hierarchy"
-
- \li When debugging Qt Quick 2 applications, double-click an item in the
- running application to cycle through the item stack at the cursor
- position.
-
- \endlist
+ Double-click an item in the running application to cycle through the item
+ stack at the cursor position.
To switch out of the selection mode, toggle the \uicontrol Select menu item.