diff --git a/main.cpp b/main.cpp index db9423c1..d1546400 100755 --- a/main.cpp +++ b/main.cpp @@ -3,18 +3,21 @@ class MainWindow : public QMainWindow { public: MainWindow(QWidget *parent = nullptr) : QMainWindow{parent} { + setWindowTitle("Test"); setAttribute(Qt::WA_DeleteOnClose); setAcceptDrops(true); grabGesture(Qt::PinchGesture); setMouseTracking(true); + QTimer::singleShot(1000, this, []() { + QCoreApplication::quit(); + }); }; private: }; int main(int argc, char *argv[]) { QApplication a(argc, argv); - MainWindow w; - w.setWindowTitle("Test"); - w.show(); + MainWindow *w = new MainWindow(); + w->show(); return a.exec(); }