Subgroup: other

Class: QgsAnimatedIcon

class qgis.core.QgsAnimatedIcon

Bases: PyQt5.QtCore.QObject

Animated icon is keeping an animation running if there are listeners connected to frameChanged

Methods

blockSignals
childEvent
children
connectFrameChanged Connect a slot that will be notified repeatedly whenever a frame changes and which should request the current icon and trigger UI updates.
connectNotify
customEvent
deleteLater
disconnect
disconnectFrameChanged Convenience function to disconnect the same style that the frame change connection was established.
disconnectNotify
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]
height The native height of the icon.
icon Get the icons representation in the current frame.
iconPath Path to a movie, e.g.
inherits
installEventFilter
isSignalConnected
isWidgetType
isWindowType
killTimer
metaObject
moveToThread
objectName
parent
property
pyqtConfigure Each keyword argument is either the name of a Qt property or a Qt signal.
receivers
removeEventFilter
sender
senderSignalIndex
setIconPath Path to a movie, e.g.
setObjectName
setParent
setProperty
signalsBlocked
startTimer
thread
timerEvent
tr
width The native width of the icon.

Attributes

destroyed destroyed(self, QObject = None) [signal]
frameChanged Emitted when the icon changed.
objectNameChanged objectNameChanged(self, str) [signal]
staticMetaObject
childEvent()
connectFrameChanged(self, receiver: QObject, method: str) → bool

Connect a slot that will be notified repeatedly whenever a frame changes and which should request the current icon and trigger UI updates.

Connect to the frame changed signal with this method and not directly. This method makes sure the annimation is started.

New in version 3.0.

connectNotify()
customEvent()
disconnectFrameChanged(self, receiver: QObject, method: str) → bool

Convenience function to disconnect the same style that the frame change connection was established.

New in version 3.0.

disconnectNotify()
frameChanged

Emitted when the icon changed. You should use connectFrameChanged instead of connecting to this signal directly. Connecting to this signal directly will cause the animation not to be started.

See also

connectFrameChanged() [signal]

height(self) → int

The native height of the icon.

New in version 3.0.

icon(self) → QIcon

Get the icons representation in the current frame. This will need to be called repeatedly, whenever a frameChanged() signal is emitted.

iconPath(self) → str

Path to a movie, e.g. animated GIF

isSignalConnected()
receivers()
sender()
senderSignalIndex()
setIconPath(self, iconPath: str)

Path to a movie, e.g. animated GIF

timerEvent()
width(self) → int

The native width of the icon.

New in version 3.0.