From 54216c4c28b81d33bd5c8b6e3b5a6083b53093fd Mon Sep 17 00:00:00 2001 From: ConfuSomu Date: Sun, 25 Dec 2022 01:58:03 -0500 Subject: Initial commit This project can also serve as a base for other Qt projects, as necessary. --- src/mainwindow.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/mainwindow.cpp (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp new file mode 100644 index 0000000..156df67 --- /dev/null +++ b/src/mainwindow.cpp @@ -0,0 +1,23 @@ +#include "mainwindow.h" +#include "./ui_mainwindow.h" + +#include + +MainWindow::MainWindow(QWidget *parent) + : QMainWindow(parent) + , ui(new Ui::MainWindow) +{ + ui->setupUi(this); + QMetaObject::connectSlotsByName(this); +} + +MainWindow::~MainWindow() +{ + delete ui; +} + +void MainWindow::on_actionOpen_triggered(bool checked) { + QMessageBox msgBox; + msgBox.setText("It works!"); + msgBox.exec(); +} -- cgit v1.2.3-54-g00ecf