Shear QML Type
아이템을 깎는 방법을 제공합니다. 더 보기...
Import Statement: | import QtQuick |
Since: | Qt 6.9 |
속성
상세 설명
전단 유형은 Item 을 2차원 전단 유형 행렬로 변환하는 방법( 스큐 변환이라고도 함)을 제공합니다.
Rectangle { width: 100; height: 100 color: "blue" transform: Shear { xFactor: 1.0 } }
이렇게 하면 y축을 따라 아무것도 수정하지 않고 x축을 따라 1.0
계수만큼 항목을 전단합니다. 각 점 P
은 xFactor(P.y - origin.y)
( origin 까지의 부호화된 수직 거리에 xFactor 을 곱한 값)만큼 변위됩니다. yFactor 을 설정하면 y축을 따라 수평 거리에 비례하여 항목이 잘립니다.
기본 원점은 (0, 0)
이므로 항목의 위쪽은 변형되지 않고 그대로 유지되는 반면, 아래쪽은 오른쪽으로 100픽셀 이동합니다(항목의 높이에 해당).
이 코드는 다음과 같습니다:
Rectangle { width: 100; height: 100 color: "blue" transform: Shear { xAngle: 45.0 } }
참고: xFactor
/yFactor
및 xAngle
/yAngle
을 모두 설정한 경우 두 변위의 합이 사용됩니다.
속성 문서
변환의 원점(즉, 항목의 나머지 부분이 잘릴 때 부모에 대해 고정된 상태로 유지되는 지점)입니다.
기본적으로 원점은 (0, 0)
입니다.
xAngle : real |
xFactor : real |
항목의 좌표계를 x축을 따라 전단할 계수입니다. 각 점 P
은 다음만큼 변위됩니다. xFactor(P.y - origin.y)
이는 QTransform::shear()의 sh
매개변수와 PlanarTransform::fromShear()에 대한 호출의 xShear
매개변수에 해당합니다.
기본값은 0.0
입니다.
xAngle 를참조하세요 .
yAngle : real |
yFactor : real |
항목의 좌표계를 y축을 따라 전단할 계수입니다. x축을 따라 항목의 좌표계를 전단할 계수입니다. 각 포인트 P
의 변위 값은 다음과 같습니다. xFactor(P.y - origin.y)
이는 QTransform::shear()의 sv
매개변수와 PlanarTransform::fromShear()에 대한 호출의 yShear
매개변수에 해당합니다.
기본값은 0.0
입니다.
yAngle 를참조하세요 .
© 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.