Can one access the internal QGIS clipboard (as defined in qgsclipboard.h/cpp) in a python script or plugin within QGis desktop?
I've tried QgsApplication.clipboard() and QApplication.clipboard, both of which return a PyQt5 QClipboard object rather than a QgsClipboard. In a plugin I'm developing, I'd love to make use of features copied to the clipboard in native format (e.g. via the copyOf() method of QgsClipboard). However, if I get a QClipboard I only have access to a text() representation, the WKT or geoJson format of the features depending on Settings -> Options -> Data sources -> Copy features as... The same is also accessible as -- apparently -- the only MIME type via .mimeData().formats(). I'm running QGis version 3.6.3 on Win10. (Note this is dup of https://gis.stackexchange.com/questions/322878/accessing-internal-qgis-clipboard-in-python that I asked a week ago). Thanks! -- Martin Pergler [email protected]
_______________________________________________ QGIS-Developer mailing list [email protected] List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
