Scale QML Type

아이템의 크기를 조정하는 방법을 제공합니다. 더 보기...

Import Statement: import QtQuick

속성

상세 설명

스케일 유형은 스케일 유형 트랜스폼을 통해 Item 의 스케일을 조정하는 방법을 제공합니다.

x축과 y축에 대해 서로 다른 배율 값을 허용하고 임의의 지점을 기준으로 배율을 적용할 수 있습니다. 이는 scale 속성보다 항목 배율을 더 세밀하게 제어할 수 있습니다.

다음 예는 직사각형의 X축을 내부 지점(25, 25)을 기준으로 배율을 조정합니다:

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

RotationTranslate참조하세요 .

속성 문서

origin group

origin.x : real

origin.y : real

이 속성은 항목의 크기가 조정되는 지점(즉, 항목의 나머지 부분이 커져도 부모에 대해 고정된 상태로 유지되는 지점)을 보유합니다.

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


xScale : real

X 축의 배율 계수입니다.

기본값은 1.0입니다.


yScale : real

Y 축의 배율입니다.

기본값은 1.0입니다.


© 2025 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.