Device QML Type

A singleton that provides information about the current device. More...

Import Statement: import quey.ui 0.1

Properties

Detailed Description

import QtQuick 2.4
import quey.ui 0.1

ApplicationView {
    width: Units.dp(640)
    height: Units.dp(480)

    Label {
        anchors.centerIn: parent
        text: "You're running a %1".arg(Device.name)+", how cool!"
    }

}

Property Documentation

[read-only] desktop : int


[read-only] isMobile : bool

This property is true if the device is mobile.


[read-only] name : string

The device name as string. Possible values are "phone", "phablet", "tablet", "computer", "TV", "device". "device" is returned if the type is unknown.


[read-only] phablet : int


[read-only] phone : int


[read-only] tablet : int


[read-only] tv : int


type : int

The device type, enum-like.


[read-only] unknown : int