All pastes #762584 Raw Edit

Unnamed

public cpp v1 · immutable
·published 2007-11-05 19:48 UTC
rendered paste body
#include <QCoreApplication>#include <QTimer>class MyClass: public QObject{protected:    void customEvent(QEvent *)    { deleteLater(); }};int main(int argc, char **argv){    QCoreApplication app(argc, argv);    QObject *obj = new MyClass;    QCoreApplication::sendEvent(obj, new QEvent(QEvent::User));    app.exec();}