aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/doc/src/concepts/effects/transformations.qdoc
blob: d1fbf8d6caa129f0f46620d4aca91fb5c28d6adc (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
// Copyright (C) 2017 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only

/*!
\ingroup qtquick-transformations
\page qtquick-effects-transformations.html
\title Qt Quick Transformation Types
\brief Types for applying transformations to visual types

Transformations are applied to child hierarchies and also will also transform
mouse and touch input so coordinates in event handlers behave as expected.

\section1 Item Properties

The \l {Item} contains a number of convenience properties,
covering the most common types of transformations.

\list
  \li \c {x} and \c{y}; Translates the item.
  \li \c {scale}; Applies a uniform scale factor to the item.
  \li \c {rotation}; Applies a counterclockwise rotation of the item.
  \li \c {transformOrigin}; Used in conjunction with scale and rotation to
         change the origin of the transformation.
\endlist

\section1 Transform List

In addition to the convenience types, it is possible to define more
comprehensive transformations using a list of
\l {Scale}, \l {Rotation},
and \l {Translate} objects to the \c {transform}
property of the \l {Item}.

*/