이 페이지에서

Scale QML Type

항목을 확대/축소하는 방법을 제공합니다. 더 보기...

Import Statement: import QtQuick

속성

상세 설명

Scale 유형은 스케일 유형 변환을 통해 Item 의 크기를 조정하는 방법을 제공합니다.

이 타입은 x축과 y축에 서로 다른 확대/축소 값을 적용할 수 있으며, 임의의 점을 기준으로 확대/축소할 수 있습니다. 이를 통해 ` scale ` 속성보다 항목의 확대/축소를 더 정밀하게 제어할 수 있습니다.

다음 예제는 Rectangle의 X축을 내부 점(25, 25)을 기준으로 확대/축소합니다:

Rectangle {
    width: 100; height: 100
    color: "blue"
    transform: Scale { origin.x: 25; origin.y: 25; xScale: 3}
}

Rotation 및 Translate도 참조하십시오 .

속성 설명서

origin group

origin.x : real

origin.y : real

이 속성은 항목이 확장되는 기준점이 되는 지점(즉, 항목의 나머지 부분이 커질 때 부모 요소에 대해 고정된 상태로 유지되는 지점)을 나타냅니다.

origin의 기본값은 (0, 0)입니다.

xScale : real

X축의 배율 계수입니다.

기본값은 1.0입니다.

yScale : real

Y축의 배율 계수입니다.

기본값은 1.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.