QGraphicsOpacityEffect¶
The
QGraphicsOpacityEffect
class provides an opacity effect. More…
New in version 4.6.
Synopsis¶
Functions¶
def
opacity
()def
opacityMask
()
Slots¶
def
setOpacity
(opacity)def
setOpacityMask
(mask)
Signals¶
def
opacityChanged
(opacity)def
opacityMaskChanged
(mask)
Detailed Description¶
An opacity effect renders the source with an opacity. This effect is useful for making the source semi-transparent, similar to a fade-in/fade-out sequence. The opacity can be modified using the
setOpacity()
function.By default, the opacity is 0.7.
-
class
QGraphicsOpacityEffect
([parent=None])¶ - param parent
QObject
Constructs a new
QGraphicsOpacityEffect
instance. Theparent
parameter is passed toQGraphicsEffect
‘s constructor.
-
PySide2.QtWidgets.QGraphicsOpacityEffect.
opacity
()¶ - Return type
qreal
See also
-
PySide2.QtWidgets.QGraphicsOpacityEffect.
opacityChanged
(opacity)¶ - Parameters
opacity –
qreal
-
PySide2.QtWidgets.QGraphicsOpacityEffect.
opacityMask
()¶ - Return type
QBrush
See also
-
PySide2.QtWidgets.QGraphicsOpacityEffect.
opacityMaskChanged
(mask)¶ - Parameters
mask –
QBrush
-
PySide2.QtWidgets.QGraphicsOpacityEffect.
setOpacity
(opacity)¶ - Parameters
opacity –
qreal
See also
-
PySide2.QtWidgets.QGraphicsOpacityEffect.
setOpacityMask
(mask)¶ - Parameters
mask –
QBrush
See also
© 2018 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.