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.
QgsClipboardhttps://github.com/qgis/QGIS/blob/94e4de59aa846ac7b1e9799fb516bd3f03a00679/src/app/qgisapp.cpp#L12483 maybe it doesn't have a wrapper for python this function?I am thinking aloud – Fran Raga May 15 '19 at 18:01QgsApplicationhas no mention of the clipboard andQgsClipboardis not listed as a class at all. So it's possible access was not anticipated for plugins or console....still hoping for a better alternative than having to convert thetext(), which can be GeoJSON or WKT based on settings. – Houska May 16 '19 at 14:36