Pages
API Documentation
On this page

KUser QML Type

User provides read-only access to the user's personal information. More...

  • Import Statement: import org.kde.coreaddons

Detailed Description

KUser is an object allowing read-only access to the user's name, os and version and the configured user image. This object can be used to personalize user interfaces.

Example usage:

import org.kde.coreaddons as KCoreAddons
[...]

Item {
    [...]
    KCoreAddons.KUser {
        id: kuser
    }

    Image {
        id: faceIcon
        source: kuser.faceIconUrl
        [...]
    }

    Text {
        text: kuser.fullName
        [...]
    }
}

Property Documentation

faceIconUrl : url

The url of the user's configured image (including file:/)

fullName : string

The user's full name

host : string

The user's the system's hostname

loginName : string

The user's login name

os : string

The pretty name indicating operating system and version

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.