C

Qt Quick Ultralite QML Types

The Qt Quick Ultralite module provides graphical primitive types. These types are only available in a QML document if that document imports the QtQuick namespace.

To use the QtQuick QML types, link your application to the Qul::Core CMake target:

qul_add_target(app)

And add the following import statement to your .qml file:

import QtQuick 2.15

For information about QML applications in general, see the Qt documentation on QML Applications and the QML Reference.

Since version 1.3, the QtQuick module offered by Qt Quick Ultralite is source-compatible with Qt's QtQuick module.

Submodules

Qt Quick Ultralite has submodules that offer additional types.

  • Controls - provides a set of reusable UI components

Basic Types

There are a number of basic types that are supported by default in the QML language.

In addition, the QtQuick import provides the following basic types:

color

ARGB color value

font

A font configuration

matrix4x4

A 4-row and 4-column matrix

Other basic types

In later Qt Quick Ultralite releases, the QML basic types are planned to be supported as follows:

A QML basic typeSupport status
varCurrently supported only in script expressions.
listNot supported
urlNot supported

Object Types

AnchorChanges

Specifies how to change the anchors of an item in a state

AnimatedSprite

Draws a sprite animation

Animation

Is the base of all QML animations

Behavior

Defines a default animation for a property change

BorderImage

Paints a border based on an image

ColorAnimation

Animates changes in color values

Column

Positions its children in a column

Component

Encapsulates a QML component definition

Connections

Enables connecting a QML signal to a handler

Flickable

Provides a surface that can be "flicked"

Image

Displays an image

Item

A basic visual QML type

KeyEvent

Provides information about a key event

Keys

Provides key handling to Items

ListElement

Defines a data item in a ListModel

ListModel

Defines a free-form list data source

ListView

Provides a list view of items provided by a model

Loader

Allows dynamic loading of a subtree from a URL or Component

Matrix4x4

Provides a 4x4 matrix to transform an Item

MouseArea

Enables simple touch handling

MouseEvent

Provides information about a touch event

NumberAnimation

Animates changes in qreal-type values

ParallelAnimation

Enables animations to be run in parallel

Path

Defines a path for use by Shape

PathArc

Defines an arc with the given radius

PathCubic

Defines a cubic Bezier curve with two control points

PathElement

The base path type

PathLine

Defines a straight line

PathMove

Moves the Path's position

PathQuad

Defines a quadratic Bezier curve with a control point

PathSvg

Defines a path using an SVG path data string

PauseAnimation

Provides a pause for an animation

PropertyAnimation

Animates changes in property values

PropertyChanges

Describes new property bindings or values for a state

Qt

Provides a global object with useful enums and functions from Qt

QtObject

A basic QML type

Rectangle

Paints a filled rectangle with optionally rounded corners

Repeater

Instantiates a number of Item-based components using a provided model

Rotation

Provides a way to rotate an item

RotationAnimation

Animates changes in rotation values

Row

Positions its children in a row

Scale

Provides a way to scale an item

ScriptAction

Defines scripts to be run during an animation

SequentialAnimation

Allows animations to be run sequentially

State

Defines configurations of objects and properties

Text

Specifies how to add text to a scene

Timer

Triggers a handler at a specified interval

Transform

For specifying advanced transformations on Image, Text, and StaticText

Transition

Defines animated transitions that occur on state changes

Translate

Provides a way to move an item without changing its x or y properties

Available under certain Qt licenses.
Find out more.