- 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 types, after component completion.
+ Inside these items it refers to the screen that the item is currently being displayed on.
+
+ To use this type, you will need to import the module with the following line:
+ \code
+ import QtQuick.Window 2.0
+ \endcode
+
+ Note that the Screen type 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.