C
Translate QML Type
アイテムの x や y のプロパティを変更せずにアイテムを移動する方法を提供します。詳細...
| Import Statement: | import QtQuick |
| Since: | Qt Quick Ultralite 1.0 |
プロパティ
詳細説明
Translateタイプは、Itemのxおよびyプロパティに加えて、位置に対する独立した制御を提供する。
次の例では、Image アイテムの Y 軸を移動する一方で、Row アイテムを変換されていないかのようにレイアウトすることができます:
import QtQuick 2.15 Row { Image { source: "qrc:/bluerect.png" transform: Translate { y: 20 } } Image { source: "qrc:/redrect.png" transform: Translate { y: -20 } } }

プロパティの説明
x : real |
X軸の移動量。
デフォルト値は 0.0 です。
y : real |
Y 軸に沿った平行移動。
デフォルト値は 0.0。
特定の Qt ライセンスの下で利用可能です。
詳細はこちら。