QgsLayoutCustomDropHandler class

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

Constructors, destructors, conversion operators

QgsLayoutCustomDropHandler(QObject* parent = nullptr)
Constructor for QgsLayoutCustomDropHandler.

Public functions

auto handleFileDrop(QgsLayoutDesignerInterface* iface, const QString& file) -> bool virtual
Called when the specified file has been dropped onto a QGIS layout.

Function documentation

bool QgsLayoutCustomDropHandler::handleFileDrop(QgsLayoutDesignerInterface* iface, const QString& file) virtual

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.