The
Qt Quick
模塊提供圖形圖元類型。這些類型僅在 QML 文檔中可用,若該文檔導入
QtQuick
名稱空間。
當前版本的
QtQuick
模塊是第 15 版,因此憑藉以下語句可以導入它:
import QtQuick 2.15
拜訪
Qt Quick
模塊文檔編製瞭解有關概念的更多信息,其中樞是
QtQuick
.
Qt Quick 包括多個包含額外類型的子模塊。
有許多基本類型 由 QML 語言默認支持 .
此外,
QtQuick
import 提供瞭下列基本類型:
大多數對象類型的提供是通過
QtQuick
import 基於
Item
類型,其自身派生自
QtObject
.
QML 對象類型
提供通過 Qt QML 模塊 (譬如
QtObject
and
Component
) 也是可用的當 import
QtQuick
.
| 啓用 QML 項的可訪問性 | |
| 動畫錨點值的變化 | |
| 指定如何按狀態改變項錨點 | |
| Plays animations stored as a series of images | |
| 繪製子畫麵動畫 | |
| Animation | 所有 QML 動畫的基 |
| 啓用動畫的手動控製 | |
| 所有 QML 動畫師的基 | |
| Behavior | Defines a default animation for a property change |
| 基於圖像描繪邊框 | |
| 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 | |
| Animates changes in color values | |
| 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 | |
| 用於拖拽的處理程序 | |
| 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 information about an individual point within a PointerEvent | |
| Provides information about an individual touch point within a PointerEvent | |
| 提供可以 "輕彈" 的錶麵 | |
| Flipable | 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 name or URL | |
| Provides metrics for a given font | |
| Parameter given with the gestureStarted signal | |
| Defines a gradient fill | |
| Defines the color at a position in a Gradient | |
| Provides information about the used Qt Quick backend | |
| 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 | |
| Image | 顯示圖像 |
| 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 | |
| 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 | |
| 啓用處理多觸摸點 | |
| Animates changes in qreal-type values | |
| Type animates the opacity of an Item | |
| Enables animations to be run in parallel | |
| Animates changes in parent values | |
| 指定如何在狀態改變時重設項父級 | |
| Path | 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 | |
| 基路徑類型 | |
| Specifies how to manually animate along a path | |
| 定義直綫 | |
| 移動路徑的位置 | |
| 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 | |
| 啓用簡單捏閤手勢處理 | |
| For specifying information about a pinch event | |
| Handler for pinch gestures | |
| Handler for reacting to a single touchpoint | |
| Provides information about a pointing device | |
| Abstract handler for pointer events with device-specific constraints | |
| Provides information about an event from a pointing device | |
| Abstract handler for pointer events | |
| Provides information about a scrolling event, such as from a mouse wheel | |
| 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 | |
| 描述狀態的新特性綁定或值 | |
| 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 | |
| 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 | |
| 提供鍵盤快捷鍵 | |
| 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 | |
| 指定子畫麵動畫 | |
| 繪製子畫麵動畫 | |
| State | 定義對象和特性的配置 |
| 指定如何按狀態運行腳本 | |
| 為非項類型提供內置狀態支持 | |
| Provides access to the Qt palettes | |
| Provides a table view of items to display data from a model | |
| Handler for taps and clicks | |
| Text | Specifies how to add formatted text to a scene |
| Displays multiple lines of editable formatted text | |
| 顯示可編輯文本行 | |
| Provides metrics for a given font and text | |
| 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 | |
| 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 | |
| 用於鼠標滾輪的處理程序 | |
| Type animates the x position of an Item | |
| Type animates the y position of an Item |