Translate QML Type
항목의 x 또는 y 속성을 변경하지 않고 이동할 수 있는 방법을 제공합니다. 더 보기...
| Import Statement: | import QtQuick |
속성
상세 설명
Translate 유형은 Item의 x 및 y 속성 외에도 위치를 독립적으로 제어할 수 있게 해줍니다.
다음 예제는 ` Rectangle ` 항목의 Y축을 이동시키면서도, ` Row `가 항목이 변환되지 않은 것처럼 레이아웃을 구성할 수 있도록 합니다:
import QtQuick 2.0
Row {
Rectangle {
width: 100; height: 100
color: "blue"
transform: Translate { y: 20 }
}
Rectangle {
width: 100; height: 100
color: "red"
transform: Translate { y: -20 }
}
}
속성 설명서
x : real
X축을 따라의 평행 이동.
기본값은 0.0입니다.
y : real
Y축을 따라의 평행 이동.
기본값은 0.0입니다.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.