Qt Reference Documentation

QML Elements

This is a dictionary of all standard QML elements made available in the Qt Declarative module.

To see the QML elements listed by functional area, see the Groups Of Related QML Elements page.

Basic Visual Items

Item

Basic item element inherited by all visual items in QML

Rectangle

Basic visual rectangle element

Gradient

Defines a gradient between two or more colors

GradientStop

Defines a color used in a Gradient

Image

Allows the use of bitmaps to a scene

BorderImage (Item-specific)

Defines an image as a border

AnimatedImage

For playing animations stored as a series of frames

Text

Allows the use of formatted text in a scene

TextInput

Displays an editable line of text

IntValidator

Validator for integer values

DoubleValidator

Validator for non-integer values

RegExpValidator

Validator for string regular expressions

TextEdit

Displays multiple lines of editable formatted text

Basic Interaction Items

MouseArea

Handles mouse interactions

FocusScope

For keyboard focus handling

Flickable

Provides a surface that can be "flicked"

Flipable

Provides a surface that produces flipping effects

GestureArea (experimental)

Enables simple gesture handling

States

State

Defines sets of configurations of objects and properties

PropertyChanges

Describes property changes within a state

StateGroup

Contains a set of states and state transitions

StateChangeScript

Allows script binding in a state

ParentChange (Item-specific)

Re-parent an Item in a state change

AnchorChanges

Change the anchors of an item in a state

Animation and Transitions

Behavior

Specifies a default animation for property changes

SequentialAnimation

Runs animations sequentially

ParallelAnimation

Runs animations in parallel

PropertyAnimation

Animates property changes

NumberAnimation

Animates properties of type qreal

Vector3dAnimation

Animates properties of type QVector3d

ColorAnimation

Animates color changes

RotationAnimation

Animates rotations

ParentAnimation

Animates parent changes

AnchorAnimation

Animates anchor changes

PauseAnimation

Pauses an animation

SmoothedAnimation

Allows a property to smoothly track a value

SpringAnimation

Allows a property to track a value in a spring-like motion

PropertyAction

Sets immediate property changes during animation

ScriptAction

Runs scripts during an animation

Transition

Animates transitions during state changes

Working with Data

Binding

Binds any value to any property

ListModel

Defines a list of data

ListElement

Defines a data item in a ListModel

VisualItemModel

Contains items that already defines its own visual delegate

VisualDataModel

Encapsulates a model and a delegate

Package

Collection that enables sharing of items within different views

XmlListModel

Specifies a model using XPath expressions

XmlRole

Specifies a role for an XmlListModel

Views

ListView

Provides a list visualization of a model

GridView

Provides a grid visualization of a model

PathView

Visualizes a model's contents along a path

Path

Defines a path used by PathView

PathLine

Defines a line in Path

PathQuad

Defines a quadratic Bezier curve in a Path

PathCubic

Defines a cubic Bezier curve in a Path

PathAttribute

Allows the setting of attributes along a Path

PathPercent

Modifies the item distribution along a Path

WebView

Allows the addition of web content to a canvas

Positioners

Column

Arranges its children vertically

Row

Arranges its children horizontally

Grid

Positions its children in a grid

Flow

Positions its children with wrapping support

Utility

Connections

Explicitly connects signals and signal handlers

Component

Encapsulate QML items as a component

Timer

Provides timed triggers

QtObject

Basic element containing only the objectName property

Qt

The QML global Qt object provides useful enums and functions from Qt.

WorkerScript

Enables the use of threads in QML

Loader

Controls the loading of items or components

Repeater

Uses a model to create multiples of components

SystemPalette

Provides access to the Qt palettes

FontLoader

Loads fonts by name or URL

LayoutItem

Allows declarative UI elements inside Qt's Graphics View layouts

Transforms

Scale

Assigns item scaling behaviors

Rotation

Assigns item rotation behaviors

Translate

Assigns item translation behaviors

Effects

Particles (experimental)

Generates and animates particles

ParticleMotionLinear

Adds linear motion behavior to Particles

ParticleMotionGravity

Adds gravitational motion to Particles

ParticleMotionWander

Adds varied motions to Particles

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.