#include <QtGui/qapplication.h> #ifndef QAPPLICATION_H class QApplication: public QCoreApplication{ /* Some contents are skipped to improve readability */ protected: void focusChanged(struct QWidget* old, struct QWidget* now); /* ... */ }; #endif // QAPPLICATION_H