[Qgis-developer] Value Tool does not work on 1.3.0

Jürgen E. Fischer jef at norbit.de
Fri Sep 18 20:24:37 EDT 2009


Hi Barry,

On Fri, 18. Sep 2009 at 10:20:53 +0100, Barry Rowlingson wrote:
> > It breaks compability, but you could connect to the old signal when connecting
> > to the new signal fails.
 
> But Qt doesn't seem to give you any warning or failure if the signal
> isn't valid.

Sorry, but connect() returns whether or not the connect was successful.  See
http://doc.trolltech.com/4.5/qobject.html#connect:

> bool QObject::connect ( const QObject * sender, const char * signal, const
> QObject * receiver, const char * method, Qt::ConnectionType type =
> Qt::AutoConnection )   [static]

> Creates a connection of the given type from the signal in the sender object
> to the method in the receiver object. Returns true if the connection
> succeeds; otherwise returns false.


Jürgen

-- 
Jürgen E. Fischer         norBIT GmbH               Tel. +49-4931-918175-20
Dipl.-Inf. (FH)           Rheinstraße 13            Fax. +49-4931-918175-50
Software Engineer         D-26506 Norden               http://www.norbit.de

-- 
norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502



More information about the Qgis-developer mailing list