C
B2QtDevice QML Type
Singleton QML type providing access to utility functions. More...
| Import Statement: | import B2Qt.Utils 1.0 |
Properties
- displayBrightness : int
- hostname : string
- ipAddress : string
- masterVolume : int
Methods
Detailed Description
B2QtDevice QML type is the interface to various utility functions.
There is no need to create an instance of this object. To use it, simply import the B2Qt.Utils module:
import B2Qt.Utils 1.0 Text { text: qsTr("IP Address:") + B2QtDevice.ipAddress }
Note: Some functions are currently only implemented for one of the platforms.
Property Documentation
This property holds the display brightness (the intensity of the backlight). The value is in the range from 0 to 255, where 255 is the maximum brightness, and 0 is the minimum (typically, the backlight is turned off).
Note: Currently implemented only for Boot to Qt for embedded Android.
This property holds the current hostname of the device.
See also ipAddress.
This property holds the current IP address(es) of the device for all active network interfaces. If multiple IP addresses are defined, this property holds a comma-separated list. The localhost (loopback) IP addresses are omitted.
See also hostname.
This property holds the master volume of the device. The volume can range from 0 to 100 and is linear. Changing the master volume will affect all audio streams.
Note: Currently implemented only for Boot to Qt for embedded Android.
Method Documentation
Shuts down the system. Does not return.
See also reboot().
Reboots the system. Does not return.
See also powerOff().
Available under certain Qt licenses.
Find out more.