[Qt-creator] Compile-time signal and slot checking

Peter Kümmel syntheticpp at gmx.net
Thu Feb 4 19:00:02 CET 2010


Am Dienstag, den 02.02.2010, 09:01 +0000 schrieb Danny Price:
> I doubt this is possible at compile time as the connections are only
> made at runtime. If it helps, connect() returns false if a connection
> fails which you can use to catch with a macro.

It's possible with some template/macro mixture, the compiler 
then also could check the arguments.

But as I could remember I had to make the signals public.

Peter




More information about the Qt-creator-old mailing list