このページでは

ColorGradient QML Type

色のグラデーションを定義します。詳細...

Import Statement: import QtDataVisualization 1.12
Since: QtDataVisualization 1.0
Status: Deprecated

この型は非推奨です。新しいコードでの使用は強く推奨しません。

プロパティ

  • stops : list<ColorGradientStop>

詳細な説明

グラデーションは、2色以上の色で定義され、それらがシームレスに混ざり合います。

色は、ColorGradientStop の子要素のセットとして指定され、各要素はグラデーション上の位置(0.0~1.0)と色を定義します。各ColorGradientStop の位置は、position プロパティを設定することで定義され、色はcolor プロパティを使用して定義されます。

グラデーションストップを一切含まないグラデーションは、QLinearGradient のデフォルト値(0.0で黒、1.0で白)にフォールバックします。

ColorGradientStopも参照してください 。

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

stops : list<ColorGradientStop> [default]

このプロパティには、グラデーションを記述するグラデーションストップが格納されます。

デフォルトでは、このプロパティには空のリストが含まれています。

グラデーションストップを設定するには、ColorGradient の子要素としてそれらを定義します。

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