Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpurcell committed Dec 1, 2024
1 parent ad29203 commit cec0b05
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

0 comments on commit cec0b05

Please sign in to comment.