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
blockSignals
boundingRect
boundingRectFor
childEvent
children
connectNotify
customEvent
deleteLater
disconnect
disconnectNotify
draw
drawSource
dumpObjectInfo
dumpObjectTree
dynamicPropertyNames
event
eventFilter
findChild
findChild(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> QObject findChildren
findChildren(self, Tuple, name: str = ‘’, options: Union[Qt.FindChildOptions, Qt.FindChildOption] = Qt.FindChildrenRecursively) -> List[QObject] inherits
installEventFilter
isEnabled
isSignalConnected
isWidgetType
isWindowType
killTimer
metaObject
mode
Returns the mode used for the preview effect. moveToThread
objectName
parent
property
pyqtConfigure
Each keyword argument is either the name of a Qt property or a Qt signal. receivers
removeEventFilter
sender
senderSignalIndex
setEnabled
setMode
Sets the mode for the preview effect, which controls how the effect modifies a widgets appearance. setObjectName
setParent
setProperty
signalsBlocked
sourceBoundingRect
sourceChanged
sourceIsPixmap
sourcePixmap
startTimer
thread
timerEvent
tr
update
updateBoundingRect
Attributes
NoPad
PadToEffectiveBoundingRect
PadToTransparentBorder
PreviewDeuteranope
PreviewGrayscale
PreviewMono
PreviewProtanope
SourceAttached
SourceBoundingRectChanged
SourceDetached
SourceInvalidated
destroyed
destroyed(self, QObject = None) [signal] enabledChanged
enabledChanged(self, bool) [signal] objectNameChanged
objectNameChanged(self, str) [signal] staticMetaObject
-
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
()¶
-