[Interest] Problem about signals/slots in Qt 5

Thiago Macieira thiago.macieira at intel.com
Tue Sep 18 17:13:06 CEST 2012

On terça-feira, 18 de setembro de 2012 17.00.44, Konrad Rosenbaum wrote:
> I'm not sure how to detect a misalignment between instance type and the
> class  name in the cast. E.g. if spinBox was not a QSpinBox, but a
> QLineEdit.

Then the compilation will fail. The connect() member template function will 
fail to find an overload because it tries to use (sender->*signal) and that 
won't compile if the two parameters don't match.

Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120918/e2c35088/attachment.sig>

More information about the Interest mailing list