Qt's signals and slots mechanism ensures that if you connect a signal to a slot, the . The C++ preprocessor changes or removes the signals, slots , and emit Signals and Slots · Small Example · Slots · Meta-Object Information. Yes, just like regular c++ pure virtual methods. The code generated by MOC does call the pure virtual slots, but that's ok since the base class can't. I understand how to use it, but the syntax of it bothers me. What is This is not Standard C++, This is QT framework construct. Lookup QT signals. Euri Pinhollow 1 This prevents infinite looping in the case of cyclic connections e. By default, for every connection you make, a signal is emitted; two signals are emitted for duplicate connections. Ein Signal kann z. You can even use both mechanisms in the same project. The first element of the array is the return value. This page was last modified on 14 March , at There are several ways you can do this, see the documentation for QMetaObject for example. We also want the connections to be automatically destroyed when the receiver is destroyed, so each receiver object needs to know who is connected to him so he can clear the connection. Older toolkits achieve this kind of communication using callbacks. Append content without editing the whole page source.