OrientationHelper

The OrientationHelper automatically rotates its children following the orientation of the device. More...

Import Statement: import Ubuntu.Components 0.1
Inherits:

Item

Inherited By:

PopupBase.

Properties

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.


rotating : alias

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.