diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-12-08 01:43:06 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-12-08 01:43:06 (GMT) |
commit | 8669c43cf65743efff36a005d433f5965ffe22f2 (patch) | |
tree | 37c0d2cafa4531044eb0cf7e373cd1ac174f60d5 /doc | |
parent | ad2a9bd8f0c0b57e1e40f5f93af21c018ceac86e (diff) | |
download | Qt-8669c43cf65743efff36a005d433f5965ffe22f2.zip Qt-8669c43cf65743efff36a005d433f5965ffe22f2.tar.gz Qt-8669c43cf65743efff36a005d433f5965ffe22f2.tar.bz2 |
Add barebones debugging documentation.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/src/declarative/qmldebugging.qdoc | 71 | ||||
-rw-r--r-- | doc/src/declarative/qmli18n.qdoc | 2 |
2 files changed, 72 insertions, 1 deletions
diff --git a/doc/src/declarative/qmldebugging.qdoc b/doc/src/declarative/qmldebugging.qdoc new file mode 100644 index 0000000..b5b58a6 --- /dev/null +++ b/doc/src/declarative/qmldebugging.qdoc @@ -0,0 +1,71 @@ +/**************************************************************************** +** +** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). +** Contact: Qt Software Information (qt-info@nokia.com) +** +** This file is part of the documentation of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** No Commercial Usage +** This file contains pre-release code and may not be distributed. +** You may use this file in accordance with the terms and conditions +** contained in the either Technology Preview License Agreement or the +** Beta Release License Agreement. +** +** GNU Lesser General Public License Usage +** Alternatively, this file may be used under the terms of the GNU Lesser +** General Public License version 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Nokia gives you certain +** additional rights. These rights are described in the Nokia Qt LGPL +** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this +** package. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 3.0 as published by the Free Software +** Foundation and appearing in the file LICENSE.GPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU General Public License version 3.0 requirements will be +** met: http://www.gnu.org/copyleft/gpl.html. +** +** If you are unsure which license is appropriate for your use, please +** contact the sales department at qt-sales@nokia.com. +** $QT_END_LICENSE$ +** +****************************************************************************/ + +/*! +\page qmldebugging.html +\title Debugging QML + +\section1 Logging + +console.log can be used to print debugging information to the console. For example: + +\qml +Rectangle { + width: 200; height: 200 + MouseRegion { + anchors.fill: parent + onClicked: console.log("clicked") + } +} +\endqml + +\section1 The QML Inspector + +qmldebugger provides an experimental inspector to aid with debugging. It can +be run as a Qt Creator plugin or as a standalone application. + +\section1 Debugging Transitions + +When a transition doesn't look quite right, it can be helpful to view it in slow +motion to see more clearly what is happening. \l {qmlviewer} provides a menu option +"Slow Down Animations" to facilitate this. + +*/ diff --git a/doc/src/declarative/qmli18n.qdoc b/doc/src/declarative/qmli18n.qdoc index 55ed3d7..4b62fcb 100644 --- a/doc/src/declarative/qmli18n.qdoc +++ b/doc/src/declarative/qmli18n.qdoc @@ -61,6 +61,6 @@ capabilities are described more fully in: \o \l {Qt Linguist Manual} \endlist -You can test a translation in qmlviewer using the -translation option. +You can test a translation in \l {qmlviewer} using the -translation option. */ |