このページでは

LinearGradient QML Type

線形グラデーション。詳細...

Import Statement: import QtQuick.Shapes 1.12
Inherits:

ShapeGradient

プロパティ

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

詳細な説明

線形グラデーションは、Shapeアイテム内の開始点と終了点の間で色を補間します。これらの点の外側では、スプレッドの種類に応じて、グラデーションがパディング、反転、または繰り返し処理されます。

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

「QLinearGradient」も参照してください 。

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

x1 : real

x2 : real

y1 : real

y2 : real

これらのプロパティは、色の補間が行われる開始点と終了点を定義します。デフォルトでは、両方の点が (0, 0) に設定されています。

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