<div dir="ltr">Can one access the internal QGIS clipboard (as defined in  qgsclipboard.h/cpp) in a python script or plugin within QGis desktop?<br><br>I've tried QgsApplication.clipboard() and QApplication.clipboard, both of which return a PyQt5 QClipboard object rather than a QgsClipboard.<br><br>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(). <br clear="all"><div><br></div><div>I'm running QGis version 3.6.3 on Win10. (Note this is dup of <a href="https://gis.stackexchange.com/questions/322878/accessing-internal-qgis-clipboard-in-python">https://gis.stackexchange.com/questions/322878/accessing-internal-qgis-clipboard-in-python</a> that I asked a week ago).<br></div><div><br></div><div>Thanks!</div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Martin Pergler<br><a href="mailto:mp@pergler.org" target="_blank">mp@pergler.org</a></div></div>