Scale QML Type
アイテムを拡大縮小する方法を提供します。詳細...
Import Statement: | import QtQuick |
プロパティ
詳細説明
Scale型は、Scale型の変換によってItem 。
X 軸と Y 軸に異なるスケーリング値を指定でき、任意の点からの相対的なスケーリングが可能です。これは、scale プロパティよりもアイテムのスケーリングをより制御できます。
次の例では、矩形の X 軸を、その内部点 (25, 25) を基準にスケーリングしています:
Rectangle { width: 100; height: 100 color: "blue" transform: Scale { origin.x: 25; origin.y: 25; xScale: 3} }
Rotation とTranslateも参照してください 。
プロパティの説明
このプロパティは、アイテムがスケーリングされる原点(つまり、アイテムの残りの部分が大きくなっても、親に対して固定されたままの点)を保持します。
原点のデフォルト値は (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.