From a48a64f24d684338a38f0f020fb466f857338d03 Mon Sep 17 00:00:00 2001 From: Benjamin Kraft Date: Tue, 19 Sep 2023 22:16:21 +0200 Subject: [PATCH] add icon and title --- icons/icons.qrc | 1 + src/main.cpp | 8 +++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/icons/icons.qrc b/icons/icons.qrc index 10305d2..74b08fc 100644 --- a/icons/icons.qrc +++ b/icons/icons.qrc @@ -6,5 +6,6 @@ pause.svg play.svg refresh.svg + app_icon.ico \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp index d1499f9..3293be6 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,11 +1,7 @@ #include #include #include "MainWindow.h" -#include -#include -#include - -using namespace std::chrono; +#include int main(int argc, char* argv[]) { QSurfaceFormat fmt = QSurfaceFormat::defaultFormat(); @@ -19,6 +15,8 @@ int main(int argc, char* argv[]) { QApplication app(argc, argv); MainWindow w; + w.setWindowTitle("Pendulum Laboratory"); + w.setWindowIcon(QIcon(":/icons/app_icon.ico")); w.show(); return QApplication::exec();