Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
Qt signals are signals used by the Qt library and the IDE Qt Creator.
Always seperate classes with Qt signals/slots in a header (.h) file and an implementation (.cpp) file. If not, this will result in the link error undefined reference to 'vtable for MyClass'.
Below, a full example is shown using Qt signals.
Operating system(s) or programming environment(s)
Ubuntu 10.10 (maverick)
Qt Creator 2.0.0 Libraries used:
#------------------------------------------------- |
#include <iostream> |
#ifndef EMITTER_H |
#include <QtCore/QCoreApplication> |
#include <iostream> |
#ifndef RECEIVER_H |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.