[Interest] Is the emit keyword purely cosmetic?
1+1=2
dbzhang800 at gmail.com
Tue Mar 20 19:07:20 CET 2012
Yes, you are right. it's an empty macro.
#define emit
so, you can write
emit emit emit emit someSignal();
too, if you like.
On Tue, Mar 20, 2012 at 10:58 AM, Nikos Chantziaras <realnc at gmail.com> wrote:
> I noticed that when emitting signals, I can simply omit the "emit"
> keyword. moc seems to produce the same code, regardless of whether I do:
>
> emit someSignal();
>
> or just call the signal member function directly:
>
> someSignal();
>
> Is "emit" purely cosmetic?
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
More information about the Interest
mailing list