Qt Components Hildon  0.20
QML components for Maemo5 with Hildon styling.
 All Classes Functions Properties Groups Pages
Properties | List of all members
screen Class Reference

Provides access to various screen properties. More...

Properties

bool covered
 Whether the screen is covered/blanked.
int currentOrientation
 The current orientation of the screen.
int height
 The current height of the screen.
int orientationLock
 The current orientation lock of the screen.
int width
 The current width of the screen.

Detailed Description

Provides access to various screen properties.

Note
screen is a context property and cannot be created in QML.

Property Documentation

int screen::currentOrientation
read

The current orientation of the screen.

Possible values are:

Value Description
Qt.WA_Maemo5LandscapeOrientation The current application window is in landscape orientation.
Qt.WA_Maemo5PortraitOrientation The current application window is in portrait orientation.
See Also
orientationLock
int screen::height
read

The current height of the screen.

This property changes when the current orientation changes.

See Also
currentOrientation
int screen::orientationLock
readwrite

The current orientation lock of the screen.

Possible values are:

Value Description
Qt.WA_Maemo5AutoOrientation Application windows will rotate when the device is rotated.
Qt.WA_Maemo5LandscapeOrientation Application windows will be locked to landscape orientation (default).
Qt.WA_Maemo5PortraitOrientation Application windows will be locked to portrait orientation.
See Also
currentOrientation
int screen::width
read

The current width of the screen.

This property changes when the current orientation changes.

See Also
currentOrientation