#include "foo.h" Foo::Foo() : QObject() { } void Foo::doIt() { // ... some processing here emit didIt(); // let the world know }