OrientationHelper
The OrientationHelper automatically rotates its children following the orientation of the device. More...
Import Statement: | import Ubuntu.Components 0.1 |
Inherits: | |
Inherited By: |
Properties
- automaticOrientation : bool (preliminary)
- orientationAngle : int
- rotating : alias (preliminary)
- transitionEnabled : bool (preliminary)
Detailed Description
Any Item placed inside an Orientation Helper will be automatically rotated following the orientation of the device.
Note that OrientationHelper is always filling its parent (anchors.parent: fill).
Example:
Item { OrientationHelper { Label { text: "Automatically rotated" } Button { text: "Automatically rotated" } } }
Property Documentation
automaticOrientation : bool |
This QML property is under development and is subject to change.
Sets whether it will be automatically rotating when the device is.
The default value is true.
orientationAngle : int |
Calculates the current orientation angle.
This QML property is under development and is subject to change.
Exposes whether the orientationTransition is running.
transitionEnabled : bool |
This QML property is under development and is subject to change.
Sets whether the rotation transition is performed.
The default value is true.