QGraphicsColorizeEffect Class Reference

[ QtGui module]

QGraphicsColorizeEffect 类提供彩色化效果。 更多...

继承 QGraphicsEffect .

方法

Qt Signals


详细描述

The QGraphicsColorizeEffect class provides a colorize 效果。

彩色化效果渲染源采用色调为其 color (). The color can be modified using the setColor () 函数。

默认情况下,颜色是浅蓝色 ( QColor (0, 0, 192)).


方法文档编制

QGraphicsColorizeEffect.__init__ ( self , QObject   parent  = None)

parent argument, if not None, causes self to be owned by Qt instead of PyQt.

构造新 QGraphicsColorizeEffect instance. The parent 参数会被传递给 QGraphicsEffect 的构造函数。

QColor QGraphicsColorizeEffect.color ( self )

QGraphicsColorizeEffect.draw ( self , QPainter   painter )

重实现自 QGraphicsEffect.draw ().

QGraphicsColorizeEffect.setColor ( self , QColor   c )

This method is also a Qt slot with the C++ signature void setColor(const QColor&) .

QGraphicsColorizeEffect.setStrength ( self , float  strength )

This method is also a Qt slot with the C++ signature void setStrength(qreal) .

float QGraphicsColorizeEffect.strength ( self )


Qt Signal Documentation

void colorChanged (const QColor&)

This is the default overload of this signal.

此信号被发射,每当效果的颜色改变时。 color 参数保持效果的新颜色。

void strengthChanged (qreal)

This is the default overload of this signal.

此信号被发射每当 setStrength () changes the colorize strength property. strength contains the new strength value of the colorize effect.