LinearGradient QML Type

線形グラデーション。もっと詳しく...

Import Statement: import QtQuick.Shapes 1.8
Inherits:

ShapeGradient

プロパティ

  • x1 : real
  • x2 : real
  • y1 : real
  • y2 : real

詳細説明

線形グラデーションは、Shapeアイテムの始点と終点の間で色を補間します。これらの点の外側では、グラデーションはスプレッドのタイプに応じて、パッドされるか、反射されるか、繰り返されます。

注: LinearGradientは、Shapeアイテムとの組み合わせでのみサポートされます。Gradient のみサポートしているため、Rectangle とは互換性がありません。

QLinearGradientも参照してください

プロパティのドキュメント

x1 : real

x2 : real

y1 : real

y2 : real

これらのプロパティは、色補間の開始点と終了点を定義します。デフォルトでは、両方の点は (0, 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.