Accessing internal QGIS clipboard in Python

by Houska   Last Updated May 15, 2019 17:22 PM

How can one access the internal QGIS clipboard (defined in C++ qgsclipboard) via Python/PyQGIS?

I've tried QgsApplication.clipboard() and QApplication.clipboard, both of which return a PyQt5 QClipboard object rather than a QgsClipboard.

I'd love to make use of features copied to the clipboard in native format (via the copyOf() method of QgsClipboard) but QClipboard seems to have only a text() representation.

Tags : qgis pyqgis


Related Questions