<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Jürgen:<br>
well I changed the connect call as follows:<br>
<br>
QMessageBox.information(self,'ImageClipperDlg - ClipImage','In
Function: setUpRubberBanding'+\<br>
' MapCanvas Scale = "' + str(self.canvas.scale()) + '"')<br>
self.emitPoint = QgsMapToolEmitPoint(self.canvas)<br>
self.canvas.setMapTool(self.emitPoint)<br>
QMessageBox.information(self,'ImageClipperDlg - ClipImage','In
Function: setUpRubberBanding'+\<br>
' about toconnect signal
"canvasClicked"')<br>
QObject.connect(self.emitPoint, SIGNAL("canvasClicked( const
QgsPoint &,\<br>
Qt::MouseButton)"), self.setClipWindow)<br>
self.isEmittingPoint = True<br>
<br>
def setClipWindow(self, point, button):<br>
QMessageBox.information(self,'ImageClipperDlg -
ClipImage','Entered Function: setClipWindow')<br>
<br>
but unfortunately the code never reached the QMessageBox call in
setClipWindow. Is this fix something the development team needs to do
before I can use this?<br>
<br>
Bob<br>
<br>
On 9/2/2009 5:47 PM, Jürgen E. Fischer wrote:
<blockquote cite="mid:20090902224742.GA22703@norbit.de" type="cite">
<pre wrap="">Hi Bob,
On Wed, 02. Sep 2009 at 15:02:05 -0500, Bob Bruce wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I wonder if it could be the Qt libraries that are available that I am selecting?
</pre>
</blockquote>
<pre wrap="">
This might be a SIP 4.8 problem. r11540 fixes it for me. It also makes the
valueTool fly again.
Unfortunately it involves a slight API change in following signals:
QgsMapCanvas::xyCoordinates( const QgsPoint & );
QgsMapToolEmitPoint::canvasClicked( const QgsPoint &, Qt::MouseButton button );
The const qualifiers are new. So the connect calls need to be updated (note:
connect returns false, when the connect fails).
Can this be fixed without changing the API?
Jürgen
</pre>
<pre wrap="">
<hr width="90%" size="4">
No virus found in this incoming message.
Checked by AVG - <a class="moz-txt-link-abbreviated" href="http://www.avg.com">www.avg.com</a>
Version: 8.5.409 / Virus Database: 270.13.75/2341 - Release Date: 09/02/09 05:50:00
</pre>
</blockquote>
<br>
</body>
</html>