[Qt-creator] Compile-time signal and slot checking
Danny Price
deepblue842 at googlemail.com
Tue Feb 2 10:01:46 CET 2010
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.
Also this list is for the Creator IDE, not the language itself. Please post
these questions to qt-interest et al.
On Tue, Feb 2, 2010 at 1:40 AM, John Vilburn <john at ohanasoftware.com> wrote:
> It would be very helpful if QtCreator took a pass through the code at
> compile time looking for SIGNAL() and SLOT() macros with incorrectly defined
> signals or slots. It is probably a bit much to ask of other development
> environments, but it would sure be nice if Qt Creator could do this. This is
> one error that is pretty common for me and it is a pain to wait until run
> time to catch the problem.
>
> Even better would be if some super-smart developer could figure out how to
> rewrite the SIGNAL and SLOT macros so that this type of checking would
> happen at compile time in any development environment.
>
> John
>
>
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20100202/abdd9b23/attachment.html
More information about the Qt-creator-old
mailing list