From cec0b053c02e06756caae398ce2abc55320b30b1 Mon Sep 17 00:00:00 2001 From: "J.D. Purcell" Date: Sun, 1 Dec 2024 11:06:41 -0500 Subject: [PATCH] Test --- main.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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(); }