OrientationHelper

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

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

__orientationAngle : int

This documentation is deprecated.

Use orientationAngle instead.


automaticOrientation : bool

This documentation 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 documentation is under development and is subject to change.

Exposes whether the orientationTransition is running.


transitionEnabled : bool

This documentation is under development and is subject to change.

Sets whether the rotation transition is performed.

The default value is true.