diff options
author | Alan Alpert <alan.alpert@nokia.com> | 2012-05-01 14:08:24 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-03 08:05:33 +0200 |
commit | 94afc937e1973cd45a189a17190f636b22a3842c (patch) | |
tree | a190d038f0a9a9e7587a659aef828163ad3409b6 /src/quick/items/qquickscreen.cpp | |
parent | f50c0af7532247b3a9c38244ec297da97a8e31ab (diff) |
Update Screen documentation
Task-Number: QTBUG-25031
Change-Id: Ie27b42417d63d50769eedcf1f760405861f439e5
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
Diffstat (limited to 'src/quick/items/qquickscreen.cpp')
-rw-r--r-- | src/quick/items/qquickscreen.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/quick/items/qquickscreen.cpp b/src/quick/items/qquickscreen.cpp index 280a06cf57..2c8bf01e4e 100644 --- a/src/quick/items/qquickscreen.cpp +++ b/src/quick/items/qquickscreen.cpp @@ -54,14 +54,17 @@ QT_BEGIN_NAMESPACE \inqmlmodule QtQuick.Window 2 \brief The Screen attached object provides information about the Screen an Item is displayed on. - The Screen attached object is only valid inside Item or Item derived elements. Inside these elements - it refers to the screen that the element is currently being displayed on. + The Screen attached object is only valid inside Item or Item derived elements, after component completion. + Inside these elements it refers to the screen that the element is currently being displayed on. To use this element, you will need to import the module with the following line: \code import QtQuick.Window 2.0 \endcode + Note that the Screen element is not valid at Component.onCompleted, because the Item has not been displayed on + a screen by this time. + Restricting this import will allow you to have a QML environment without access to window system features. */ |