Re: [Qgis-user] Tool to copy the content of the map canvas to the clipboard

2016-12-22 Thread PIERRE Sylvain
Hi, For a standalone Pyqgis App I needed such function, so here it is (implemented for a QgsMapTool) : from PyQt4 import QtCore from PyQt4.QtGui import QPixmap , QApplication # QGIS bindings for mapping functions from qgis.gui import QgsMapTool import tempfile try: _fromUtf8 =

Re: [Qgis-user] Tool to copy the content of the map canvas to the clipboard

2016-12-21 Thread Larry Shaffer
Hi, Sorry for the top post... Btw, you can also grab iface.mainWindow() for the full application main window screen shot. This just grabs the content area, so no native window dressings, e.g. no title bar, etc. There is also the fun stuff in this Qt5 example (I think one for Qt4, too):

Re: [Qgis-user] Tool to copy the content of the map canvas to the clipboard

2016-12-21 Thread Larry Shaffer
Hi Bo, et al., On Wed, Dec 21, 2016 at 4:34 AM, Bo Victor Thomsen < bo.victor.thom...@gmail.com> wrote: > Ok - > > A very rough, but functional first version of the plugin is now in > https://github.com/Frederikssund/QGIS-canvas-to-clipboard/ > >- No shortcut >- No about-box, nice

Re: [Qgis-user] Tool to copy the content of the map canvas to the clipboard

2016-12-21 Thread Bo Victor Thomsen
Ok - A very rough, but functional first version of the plugin is now in https://github.com/Frederikssund/QGIS-canvas-to-clipboard/ * No shortcut * No about-box, nice explanations or help text * No copyright statements * Only one button that create a bitmap of the current map-canvas and

Re: [Qgis-user] Tool to copy the content of the map canvas to the clipboard

2016-12-21 Thread Bo Victor Thomsen
Hi Larry - The python snippet works like a charm on Windows too. I'll wrap a minimalistic python plugin around the snippet with a button and a short-cut. I owe you a large cold beer (actually several :-) . That snippet saved me from digging into a rather large pile of Qgis/PyQT

Re: [Qgis-user] Tool to copy the content of the map canvas to the clipboard

2016-12-21 Thread Neumann, Andreas
I agree. It would be nice to have this in QGIS core. Andreas On 2016-12-21 09:44, Richard Duivenvoorde wrote: > On 12/20/2016 09:43 PM, Larry Shaffer wrote: > >> 2016-12-20 18:23 GMT+01:00 Bo Victor Thomsen >> >: >> >> Hi

Re: [Qgis-user] Tool to copy the content of the map canvas to the clipboard

2016-12-21 Thread Richard Duivenvoorde
On 12/21/2016 09:44 AM, Richard Duivenvoorde wrote: On 12/20/2016 09:43 PM, Larry Shaffer wrote: 2016-12-20 18:23 GMT+01:00 Bo Victor Thomsen >: Hi List-members - Is there in Qgis a function / button /

Re: [Qgis-user] Tool to copy the content of the map canvas to the clipboard

2016-12-21 Thread Brent Wood
I just save the project as image, then add the image to a document. While perhaps a few more clicks than using the clipboard, it works fine. Cheers, Brent On Wednesday, December 21, 2016 9:45 PM, Richard Duivenvoorde wrote: On 12/20/2016 09:43 PM, Larry Shaffer

Re: [Qgis-user] Tool to copy the content of the map canvas to the clipboard

2016-12-21 Thread Richard Duivenvoorde
On 12/20/2016 09:43 PM, Larry Shaffer wrote: 2016-12-20 18:23 GMT+01:00 Bo Victor Thomsen >: Hi List-members - Is there in Qgis a function / button / menu-item / short-cut / plugin to make a simple

Re: [Qgis-user] Tool to copy the content of the map canvas to the clipboard

2016-12-20 Thread Karl-Magnus Jönsson
Hi! As I use Windows I usually use the Snipping tool in Windows for such needs. Isn’t that an option? Useful for other programs too. Karl-Magnus Jönsson Från: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] För Larry Shaffer Skickat: den 20 december 2016 21:44 Till: DelazJ Kopia:

Re: [Qgis-user] Tool to copy the content of the map canvas to the clipboard

2016-12-20 Thread Larry Shaffer
Hi, On Tue, Dec 20, 2016 at 11:02 AM, DelazJ wrote: > Hi, > > 2016-12-20 18:23 GMT+01:00 Bo Victor Thomsen > : > >> Hi List-members - >> >> Is there in Qgis a function / button / menu-item / short-cut / plugin to >> make a simple bitmap copy of

Re: [Qgis-user] Tool to copy the content of the map canvas to the clipboard

2016-12-20 Thread DelazJ
Hi, 2016-12-20 18:23 GMT+01:00 Bo Victor Thomsen : > Hi List-members - > > Is there in Qgis a function / button / menu-item / short-cut / plugin to > make a simple bitmap copy of the current content of the map-canvas and save > it to the clipboard ? My users need

[Qgis-user] Tool to copy the content of the map canvas to the clipboard

2016-12-20 Thread Bo Victor Thomsen
Hi List-members - Is there in Qgis a function / button / menu-item / short-cut / plugin to make a simple bitmap copy of the current content of the map-canvas and save it to the clipboard ? My users need this to make a copy of the map and paste into MS-Word or other software. I really need