Screen
The Screen attached object provides information about the Screen an Item is displayed on. More...
Attached Properties
- height : int
- orientation : Qt::ScreenOrientation
- primaryOrientation : Qt::ScreenOrientation
- width : int
Attached Methods
- int angleBetween(Qt::ScreenOrientation a, Qt::ScreenOrientation b)
Detailed Description
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:
import QtQuick.Window 2.0
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.
Attached Property Documentation
This contains the current orientation of the screen.
This contains the primary orientation of the screen.
Attached Method Documentation
Returns the rotation angle, in degrees, between the two specified angles.