[Interest] Is the emit keyword purely cosmetic?
dbzhang800 at gmail.com
Tue Mar 20 19:07:20 CET 2012
Yes, you are right. it's an empty macro.
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:
> Is "emit" purely cosmetic?
> Interest mailing list
> Interest at qt-project.org
More information about the Interest