Subgroup: Layout

Class: QgsLayoutCustomDropHandler

class qgis.gui.QgsLayoutCustomDropHandler

Bases: PyQt5.QtCore.QObject

Abstract base class that may be implemented to handle new types of data to be dropped in QGIS layouts.

New in version 3.0: Methods

blockSignals
childEvent
children
connectNotify
customEvent
deleteLater
disconnect
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]
handleFileDrop Called when the specified file has been dropped onto a QGIS layout.
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
setObjectName
setParent
setProperty
signalsBlocked
startTimer
thread
timerEvent
tr

Attributes

destroyed destroyed(self, QObject = None) [signal]
objectNameChanged objectNameChanged(self, str) [signal]
staticMetaObject
childEvent()
connectNotify()
customEvent()
disconnectNotify()
handleFileDrop(self, iface: QgsLayoutDesignerInterface, file: str) → bool

Called when the specified file has been dropped onto a QGIS layout. If true is returned, then the handler has accepted this file and it should not be further processed (e.g. by other QgsLayoutCustomDropHandler).

The base class implementation does nothing.

isSignalConnected()
receivers()
sender()
senderSignalIndex()
timerEvent()