QGraphicsEffect Class Reference
[QtGui module]
Inherits QObject.
Inherited by QGraphicsBlurEffect, QGraphicsColorizeEffect, QGraphicsDropShadowEffect and QGraphicsOpacityEffect.
Types
- enum ChangeFlag { SourceAttached, SourceDetached, SourceBoundingRectChanged, SourceInvalidated }
- class ChangeFlags
- enum PixmapPadMode { NoPad, PadToTransparentBorder, PadToEffectiveBoundingRect }
Methods
- __init__ (self, QObject parent = None)
- QRectF boundingRect (self)
- QRectF boundingRectFor (self, QRectF)
- draw (self, QPainter)
- drawSource (self, QPainter)
- bool isEnabled (self)
- setEnabled (self, bool)
- QRectF sourceBoundingRect (self, Qt.CoordinateSystem system = Qt.LogicalCoordinates)
- sourceChanged (self, ChangeFlags)
- bool sourceIsPixmap (self)
- (QPixmap, QPoint offset) sourcePixmap (self, Qt.CoordinateSystem system = Qt.LogicalCoordinates, PixmapPadMode mode = QGraphicsEffect.PadToEffectiveBoundingRect)
- update (self)
- updateBoundingRect (self)
Qt Signals
Detailed Description
Type Documentation
QGraphicsEffect.ChangeFlag
QGraphicsEffect.PixmapPadMode
Method Documentation
QGraphicsEffect.__init__ (self, QObject parent = None)
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
QRectF QGraphicsEffect.boundingRect (self)
QRectF QGraphicsEffect.boundingRectFor (self, QRectF)
QGraphicsEffect.draw (self, QPainter)
This method is abstract and should be reimplemented in any sub-class.
QGraphicsEffect.drawSource (self, QPainter)
bool QGraphicsEffect.isEnabled (self)
QGraphicsEffect.setEnabled (self, bool)
This method is also a Qt slot with the C++ signature void setEnabled(bool).
QRectF QGraphicsEffect.sourceBoundingRect (self, Qt.CoordinateSystem system = Qt.LogicalCoordinates)
QGraphicsEffect.sourceChanged (self, ChangeFlags)
bool QGraphicsEffect.sourceIsPixmap (self)
(QPixmap, QPoint offset) QGraphicsEffect.sourcePixmap (self, Qt.CoordinateSystem system = Qt.LogicalCoordinates, PixmapPadMode mode = QGraphicsEffect.PadToEffectiveBoundingRect)
QGraphicsEffect.update (self)
This method is also a Qt slot with the C++ signature void update().
QGraphicsEffect.updateBoundingRect (self)
Qt Signal Documentation
void enabledChanged (bool)
This is the default overload of this signal.