Subgroup: other
Class: QgsPreviewEffect¶
-
class
qgis.gui.
QgsPreviewEffect
¶ Bases:
PyQt5.QtWidgets.QGraphicsEffect
A graphics effect which can be applied to a widget to simulate various printing and color blindness modes.
Methods
childEvent
connectNotify
customEvent
disconnectNotify
draw
drawSource
isSignalConnected
mode
Returns the mode used for the preview effect. receivers
sender
senderSignalIndex
setMode
Sets the mode for the preview effect, which controls how the effect modifies a widgets appearance. sourceBoundingRect
sourceChanged
sourceIsPixmap
sourcePixmap
timerEvent
updateBoundingRect
Signals
Attributes
PreviewDeuteranope
PreviewGrayscale
PreviewMono
PreviewProtanope
-
PreviewDeuteranope
= 3¶
-
PreviewGrayscale
= 0¶
-
class
PreviewMode
¶ Bases:
int
-
PreviewMono
= 1¶
-
PreviewProtanope
= 2¶
-
childEvent
()¶
-
connectNotify
()¶
-
customEvent
()¶
-
disconnectNotify
()¶
-
draw
(self, painter: QPainter)¶
-
drawSource
()¶
-
isSignalConnected
()¶
-
mode
(self) → QgsPreviewEffect.PreviewMode¶ Returns the mode used for the preview effect.
Returns: PreviewMode currently used by the effect New in version 2.3.
See also
-
receivers
()¶
-
sender
()¶
-
senderSignalIndex
()¶
-
setMode
(self, mode: QgsPreviewEffect.PreviewMode)¶ Sets the mode for the preview effect, which controls how the effect modifies a widgets appearance.
Parameters: mode – PreviewMode to use to draw the widget New in version 2.3.
See also
-
sourceBoundingRect
()¶
-
sourceChanged
()¶
-
sourceIsPixmap
()¶
-
sourcePixmap
()¶
-
timerEvent
()¶
-
updateBoundingRect
()¶
-