diff options
author | Martin Smith <martin.smith@nokia.com> | 2010-06-16 12:49:45 (GMT) |
---|---|---|
committer | Martin Smith <martin.smith@nokia.com> | 2010-06-16 12:49:45 (GMT) |
commit | df3883b1dae79598e7d5f6b470c876de9cfc8bf2 (patch) | |
tree | 71e87f8167512d04b6142dc84a6e54b71940b4a9 /doc/src | |
parent | 00e3c4d7dcb5f14e9d13200a1e5d041d266f6610 (diff) | |
parent | 3d03e0a1fdd04e1ab97ba0f95a3a934c879d047e (diff) | |
download | Qt-df3883b1dae79598e7d5f6b470c876de9cfc8bf2.zip Qt-df3883b1dae79598e7d5f6b470c876de9cfc8bf2.tar.gz Qt-df3883b1dae79598e7d5f6b470c876de9cfc8bf2.tar.bz2 |
Merge branch '4.7' of git@scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/declarative/qdeclarativedebugging.qdoc | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/doc/src/declarative/qdeclarativedebugging.qdoc b/doc/src/declarative/qdeclarativedebugging.qdoc index 4ff7fde..99dd2d2 100644 --- a/doc/src/declarative/qdeclarativedebugging.qdoc +++ b/doc/src/declarative/qdeclarativedebugging.qdoc @@ -60,8 +60,35 @@ Rectangle { \section1 Debugging Transitions When a transition doesn't look quite right, it can be helpful to view it in slow -motion to see what is happening more clearly. The \l {Qt Declarative UI Runtime}{qml} tool provides a -"Slow Down Animations" menu option to facilitate this. +motion to see what is happening more clearly. This functionality is supported +in the \l {Qt Declarative UI Runtime}{qmlviewer} tool: to enable this, +click on the "Debugging" menu, then "Slow Down Animations". + + +\section1 Debugging module imports + +The \c QML_IMPORT_TRACE environment variable can be set to enable debug output +from QML's import loading mechanisms. + +For example, for a simple QML file like this: + +\qml +import Qt 4.7 + +Rectangle { width: 100; height: 100 } +\endqml + +If you set \c {QML_IMPORT_TRACE=1} before running the \l {Qt Declarative UI Runtime}{qmlviewer} +(or your QML C++ application), you will see output similar to this: + +\code +QDeclarativeImportDatabase::addImportPath "/qt-sdk/imports" +QDeclarativeImportDatabase::addImportPath "/qt-sdk/bin/QMLViewer.app/Contents/MacOS" +QDeclarativeImportDatabase::addToImport 0x106237370 "." -1.-1 File as "" +QDeclarativeImportDatabase::addToImport 0x106237370 "Qt" 4.7 Library as "" +QDeclarativeImportDatabase::resolveType "Rectangle" = "QDeclarativeRectangle" +\endcode + \section1 Debugging with Qt Creator |