Qt Quick QML Types
The Qt Quick module provides graphical primitive types. These types are only available in a QML document if that document imports the QtQuick
namespace.
To use the module, import the QtQuick
module with the following statement:
import QtQuick
Visit the Qt Quick module documentation for more information about the concepts that are central to QtQuick
.
Submodules
Qt Quick includes several submodules that contain additional types:
- Local Storage - a submodule containing a JavaScript interface for an SQLite database
- Particles - provides a particle system for QML applications
- Controls - provides a set of reusable UI components
- Layouts - contains types that are used to arrange items in the user interface
- Tests - types for testing QML applications.
- Effects - provides types for applying one or more simple graphical effects to Qt Quick items.
- Shapes - provides types for rendering vector shapes in a Qt Quick scene.
Value Types
There are a number of value types that are supported by default in the QML language.
In addition, the QtQuick
import provides the following value types:
ARGB color value | |
Font value with the properties of QFont. The font type refers to a font value with the properties of QFont | |
A matrix4x4 type is a 4-row and 4-column matrix | |
A quaternion type has scalar, x, y, and z attributes | |
A vector2d type has x and y attributes | |
Value with x, y, and z attributes | |
A vector4d type has x, y, z and w attributes |
Object Types
Most object types provided by the QtQuick
import are based on the Item type, which itself derives from QtObject. QML object types provided by the Qt QML module (such as QtObject and Component) are also available when you import QtQuick
.
Enables accessibility of QML items | |
Animates changes in anchor values | |
Specifies how to change the anchors of an item in a state | |
Plays animations stored as a series of images | |
Draws a sprite animation | |
Is the base of all QML animations | |
Enables manual control of animations | |
Is the base of all QML animators | |
Provides access to global application state properties shared by many QML components | |
Defines a default animation for a property change | |
Paints a border based on an image | |
Defines a mesh with vertices arranged like those of a BorderImage | |
Provides a 2D canvas item enabling drawing via JavaScript | |
Provides an opaque CanvasGradient interface | |
Contains image pixel data in RGBA order | |
Provides ordered and indexed access to the components of each pixel in image data | |
Notification that a Window is about to be closed | |
Animates changes in color values | |
Set of colors by roles | |
Positions its children in a column | |
Provides 2D context for shapes on a Canvas item | |
Defines a validator for non-integer numbers | |
For specifying drag and drop events for moved Items | |
Provides information about a drag event | |
Handler for dragging | |
For specifying drag and drop handling in an area | |
Provides a property to manipulate the appearance of Enter key on an on-screen keyboard | |
Provides a surface that can be "flicked" | |
Provides a surface that can be flipped | |
Positions its children side by side, wrapping as necessary | |
Explicitly creates a focus scope | |
Allows fonts to be loaded by URL | |
Provides metrics for a given font | |
Triggers a handler at every animation frame update | |
Parameter given with the gestureStarted signal | |
Defines a gradient fill | |
Defines the color at a position in a Gradient | |
Provides information about the scenegraph backend and the graphics API used by Qt Quick | |
Positions its children in grid formation | |
Defines a mesh with vertices arranged in a grid | |
For specifying a grid view of items provided by a model | |
Handler for mouse and tablet hover | |
Displays an image | |
Provides access to QInputMethod for QML applications | |
Defines a validator for integer values | |
A basic visual QML type | |
Contains the results from a call to Item::grabToImage() | |
Provides information about a key event | |
Supports key navigation by arrow keys | |
Provides key handling to Items | |
Property used to mirror layout behavior | |
Provides a list view of items provided by a model | |
Allows dynamic loading of a subtree from a URL or Component | |
Provides a way to apply a 4x4 tranformation matrix to an Item | |
Enables simple mouse handling | |
Provides information about a mouse event | |
Abstract handler for multi-point Pointer Events | |
Enables handling of multiple touch points | |
Animates changes in qreal-type values | |
Type animates the opacity of an Item | |
Contains color groups for each QML item state | |
Enables animations to be run in parallel | |
Animates changes in parent values | |
Specifies how to reparent an Item in a state change | |
Defines a path for use by PathView and Shape | |
Defines an arc with the given radii and center | |
Animates an item along a path | |
Defines an arc with the given radius | |
Specifies how to set an attribute at a given position in a Path | |
Defines a cubic Bezier curve with two control points | |
Defines a point on a Catmull-Rom curve | |
The base path type | |
Specifies how to manually animate along a path | |
Defines a straight line | |
Moves the Path's position | |
Defines a set of polylines through a list of lists of coordinates | |
Manipulates the way a path is interpreted | |
Defines a polyline through a list of coordinates | |
Defines a quadratic Bezier curve with a control point | |
Defines a path using an SVG path data string | |
Defines a string in a specified font | |
Lays out model-provided items on a path | |
Provides a pause for an animation | |
Enables simple pinch gesture handling | |
For specifying information about a pinch event | |
Handler for pinch gestures | |
Handler for reacting to a single touchpoint | |
QML equivalent for QPointingDevice | |
Abstract handler for pointer events with device-specific constraints | |
QML equivalent for QPointerEvent | |
Abstract handler for pointer events | |
Provides attached properties that contain details on where an item exists in a positioner | |
Specifies immediate property changes during animation | |
Animates changes in property values | |
Describes new property bindings or values for a state | |
Paints a filled rectangle with an optional border | |
Provides a string validator | |
Instantiates a number of Item-based components using a provided model | |
Provides a way to rotate an Item | |
Animates changes in rotation values | |
Type animates the rotation of an Item | |
Positions its children in a row | |
Provides a way to scale an Item | |
Type animates the scale factor of an Item | |
Attached object provides information about the Screen an Item or Window is displayed on | |
Defines scripts to be run during an animation | |
Allows animations to be run sequentially | |
Applies custom shaders to a rectangle | |
Renders a Qt Quick item into a texture and displays it | |
Provides keyboard shortcuts | |
Abstract handler for single-point Pointer Events | |
Allows a property to smoothly track a value | |
Allows a property to track a value in a spring-like motion | |
Specifies sprite animations | |
Draws a sprite animation | |
Defines configurations of objects and properties | |
Specifies how to run a script in a state | |
Provides built-in state support for non-Item types | |
Provides access to the Qt palettes | |
Provides a table view of items to display data from a model | |
Handler for taps and clicks | |
Specifies how to add formatted text to a scene | |
A wrapper around TextEdit's backing QTextDocument | |
Displays multiple lines of editable formatted text | |
Displays an editable line of text | |
Provides metrics for a given font and text | |
Represents a contiguous selection of text and its properties | |
Describes a touch point in a MultiPointTouchArea | |
For specifying advanced transformations on Items | |
Defines animated transitions that occur on state changes | |
Provides a way to move an Item without changing its x or y properties | |
Provides a tree view to display data from a QAbstractItemModel | |
Type animates a uniform of a ShaderEffect | |
Animates changes in QVector3d values | |
Specifies items under transition in a view | |
Provides information about a mouse wheel event | |
Handler for the mouse wheel | |
Creates a new top-level window | |
Allows embedding arbitrary QWindows into a Qt Quick scene | |
Type animates the x position of an Item | |
Type animates the y position of an Item | |
Qml equivalent for QEventPoint | |
An event point | |
QML equivalent for QPointingDeviceUniqueId |