[Qgis-developer] How to connect QToolButton to a QGisMap????

Tim Sutton lists at linfiniti.com
Thu Jul 7 16:20:11 EDT 2011


Hi

Try looking at some code that already does something similar to what
you need e.g.

src/plugins/coordinate_capture/coordinatecapturemaptool.cpp

If you are programming in python, simply open a plug that does
something similar and look at the source.

Regards

Tim


On Thu, Jul 7, 2011 at 5:06 PM, Ornélio Hinterholz Junior
<ohjrr2009 at gmail.com> wrote:
> Hi,
>
> I'm developing a new plugin and I got to put a new QToolButton in a new
> QToolBar that I created, but the problem is that I can't connect the
> QToolButton to the QGis's default ButtonGroup  and neither connect the
> action to QgsMapCanvas.
>
> How do I add a new ToggleButton connected with QgsMapCanvas?????
>
> I want to get the coordinate clicked, ONLY THIS!!!!!
>
> Any example code????
>
> Thanks,
>
> Ornélio
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>



-- 
Tim Sutton - QGIS Project Steering Committee Member (Release  Manager)
==============================================
Please do not email me off-list with technical
support questions. Using the lists will gain
more exposure for your issues and the knowledge
surrounding your issue will be shared with all.

Visit http://linfiniti.com to find out about:
 * QGIS programming and support services
 * Mapserver and PostGIS based hosting plans
 * FOSS Consulting Services
Skype: timlinux
Irc: timlinux on #qgis at freenode.net
==============================================


More information about the Qgis-developer mailing list