aboutsummaryrefslogtreecommitdiffstats
path: root/doc/qtdesignstudio/src/components/qtquick-component-instances.qdoc
blob: d68f917669b164dac0a34ee7e52c99b4954188a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only

/*!
    \page quick-component-instances.html
    \previouspage studio-3d-loader-3d.html
    \nextpage quick-components-creating.html

    \title Creating Component Instances

    \QDS comes with \e {preset components} that you can use in your UI by
    creating instances of them.

    \image qmldesigner-editing-components.png "Creating Component Instances"

    To create component instances and edit their properties:

    \list 1
        \li Drag-and-drop components from \uicontrol Components (1) to
            \l Navigator (2), \l {Form Editor} (3), or \l {3D Editor} (4).
            This creates instances of the components in the current
            component file.
        \li Select component instances in \uicontrol Navigator to edit the
            values of their properties in \uicontrol Properties.
            \image qmldesigner-properties-view.png "Properties view"
            For more information, see \l {Specifying Component Properties}.
        \li To change the appearance and behavior of the component instances
            in ways that are not supported in \QDS by default, you can define
            custom properties in \l {Connection View} > \uicontrol {Properties}.
            \image qmldesigner-dynamicprops.png "Connection View Properties tab"
            For more information, see \l{Specifying Dynamic Properties}.
        \li To enable users to interact with the component instances, connect
            the instances to signals in \uicontrol {Connection View} >
            \uicontrol Connections. For example, you can specify what happens
            when a component instance is clicked. For more information, see
            \l{Connecting Components to Signals}.
            \image qmldesigner-connections.png "Connection View Connections tab"
        \li To dynamically change the behavior of a component instance when
            another component instance changes, create bindings between them in
            \uicontrol {Connection View} > \uicontrol Bindings.
            For more information, see \l{Adding Bindings Between Properties}.
            \image qmldesigner-bindings.png "Connection View Bindings tab"
        \li Add states to apply sets of changes to the property values of one
            or several component instances in the \uicontrol States view.
            For more information, see \l{Adding States}.
        \li Animate the properties of component instances in the
            \uicontrol Timeline view. For more information, see
            \l{Creating Timeline Animations}.
    \endlist
*/