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
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest