C

Qul QML Type

A global object with functions for Qt Quick Ultralite. More...

Import Statement: import QtQuick .

Methods

Detailed Description

Method Documentation

image image(url)

Returns the image for a resource url.

When a string literal is directly assigned to an image property, it is converted to an image implicitly. In script expressions, resource url strings must be converted to images explictly by calling Qul::image:

Image {
    property bool on: true
    source: on ? Qul.image("qrc:///button-on.png") : Qul.image("qrc:///button-off.png")
}

Note: Dynamic strings cannot be converted to images.

See also Managing Resources and Assets, Dealing with image resources, and Compatibility when using Qul.image.


Available under certain Qt licenses.
Find out more.