PathPercent QML Type
경로가 해석되는 방식을 조작합니다. 자세히...
Import Statement: | import QtQuick |
속성
- value : real
자세한 설명
PathPercent를 사용하면 PathView 경로의 항목 간 간격을 조작할 수 있습니다. 이를 사용하여 경로의 일부에 있는 항목을 한데 묶고 경로의 다른 부분에 분산시킬 수 있습니다.
아래 예는 경로에 있는 항목의 정규분포를 경로의 PathLine 섹션에 항목의 50%를 배치하는 분포와 비교하여 보여줍니다.
PathView { // ... Path { startX: 20; startY: 0 PathQuad { x: 50; y: 80; controlX: 0; controlY: 80 } PathPercent { value: 0.25 } PathLine { x: 150; y: 80 } PathPercent { value: 0.75 } PathQuad { x: 180; y: 0; controlX: 200; controlY: 80 } PathPercent { value: 1 } } } |
Path 를참조하세요 .
속성 문서
value : real |
이 지점까지 배치해야 하는 항목의 비율입니다.
이 값은 항상 경로의 이전 위치에서 PathPercent 으로 지정된 마지막 값보다 높아야 합니다.
다음 예시에는 세 개의 PathLine으로 구성된 Path가 있습니다. 일반적으로 PathView 의 항목은 이 경로를 따라 동일하게 배치되며 줄 세그먼트당 동일한 수의 항목이 배치됩니다. PathPercent 을 사용하면 첫 번째 줄과 세 번째 줄에 각각 배치된 항목의 10%를, 두 번째 줄에 나머지 80%를 보유하도록 지정할 수 있습니다.
PathView { // ... Path { startX: 0; startY: 0 PathLine { x:100; y: 0; } PathPercent { value: 0.1 } PathLine { x: 100; y: 100 } PathPercent { value: 0.9 } PathLine { x: 100; y: 0 } PathPercent { value: 1 } } }
© 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.