Screen

APIRendererScreen

Source

Screen.touch

Type:
Boolean
Default value:
false
Read Only
Text {
    text: Screen.touch ? 'Touch' : 'Mouse'
    font.pixelSize: 30
}

Source

Screen.width

Type:
Float
Default value:
1024
Read Only

Source

Screen.height

Type:
Float
Default value:
800
Read Only

Source

Screen.orientation

Type:
String
Default value:
'Portrait'
Read Only

May contains: Portrait, Landscape, InvertedPortrait, InvertedLandscape.

Screen.onOrientationChange(oldValue)

Parameters:
  • oldValue — String
Type:
Signal

Source

Screen.statusBar

Type:
StatusBar
Read Only

Source