QGraphicsColorizeEffect Class
QGraphicsColorizeEffect クラスは、色付け効果を提供します。詳細...
| ヘッダー: | #include <QGraphicsColorizeEffect> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Widgets) target_link_libraries(mytarget PRIVATE Qt6::Widgets) |
| qmake: | QT += widgets |
| 継承元: | QGraphicsEffect |
プロパティ
パブリック関数
| QGraphicsColorizeEffect(QObject *parent = nullptr) | |
| virtual | ~QGraphicsColorizeEffect() |
| QColor | color() const |
| qreal | strength() const |
パブリックスロット
| void | setColor(const QColor &c) |
| void | setStrength(qreal strength) |
シグナル
| void | colorChanged(const QColor &color) |
| void | strengthChanged(qreal strength) |
再実装された保護関数
| virtual void | draw(QPainter *painter) override |
詳細な説明
colorize エフェクトは、ソースをcolor() の色合いでレンダリングします。色は、setColor() 関数を使用して変更できます。
デフォルトでは、色は水色 (QColor(0, 0, 192)) です。

関連項目: QGraphicsDropShadowEffect 、QGraphicsBlurEffect 、およびQGraphicsOpacityEffect 。
プロパティのドキュメント
color : QColor
このプロパティは、エフェクトの色を指定します。
デフォルトでは、色は水色(QColor (0, 0, 192))です。
アクセス関数:
| QColor | color() const |
| void | setColor(const QColor &c) |
通知シグナル:
| void | colorChanged(const QColor &color) |
strength : qreal
このプロパティは、エフェクトの強さを指定します。
デフォルトでは、強度は 1.0 に設定されています。強度が 0.0 の場合は効果がなく、1.0 の場合は完全なカラー化が行われます。
アクセス関数:
| qreal | strength() const |
| void | setStrength(qreal strength) |
通知シグナル:
| void | strengthChanged(qreal strength) |
メンバ関数のドキュメント
QGraphicsColorizeEffect::QGraphicsColorizeEffect(QObject *parent = nullptr)
新しい QGraphicsColorizeEffect インスタンスを作成します。parent パラメータは、QGraphicsEffect のコンストラクタに渡されます。
[virtual noexcept] QGraphicsColorizeEffect::~QGraphicsColorizeEffect()
その効果を解除します。
[signal] void QGraphicsColorizeEffect::colorChanged(const QColor &color)
このシグナルは、エフェクトの色が変化するたびに発火します。color パラメータには、エフェクトの新しい色が格納されます。
注: プロパティ「color 」の通知 シグナルです。
[override virtual protected] void QGraphicsColorizeEffect::draw(QPainter *painter)
QGraphicsEffect::draw(QPainter *painter) の再実装です。
[signal] void QGraphicsColorizeEffect::strengthChanged(qreal strength)
このシグナルは、setStrength() が colorize の strength プロパティを変更するたびに発火します。strength には、colorize エフェクトの新しい強度値が含まれます。
注: プロパティ `strength` に関する通知 シグナルです。
© 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.