Q:

Whats the difference between a normal function and a slot in Qt?

Whats the difference between a normal function and a slot in Qt? I have read that slots are like normal functions but in addition can be connected to signals, but normal functions can just as well.

A:

The difference is that slots with get MOC treatment and generate meta data, which is required for certain Qt functionality that involves runtime lookup by member names passed as strings.
For connections alone, plain member functions are perfectly OK since Qt 5 using the new connection syntax.
For Qt 4 you have no option but to use slots.

