From 19e03d7615074e6577ad385b87f6e863ae01a699 Mon Sep 17 00:00:00 2001 From: iota97 Date: Sun, 5 Jan 2020 12:21:19 +0100 Subject: [PATCH] Add headbar icon to Qt --- Qt/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Qt/mainwindow.cpp b/Qt/mainwindow.cpp index 502e22a0fd..4b4a6aaaf7 100644 --- a/Qt/mainwindow.cpp +++ b/Qt/mainwindow.cpp @@ -29,6 +29,8 @@ MainWindow::MainWindow(QWidget *parent, bool fullscreen) : QRect rect = desktop->screenGeometry(screenNum); move((rect.width()-frameGeometry().width()) / 4, (rect.height()-frameGeometry().height()) / 4); + setWindowIcon(QIcon(qApp->applicationDirPath() + "/assets/icon_regular_72.png")); + SetGameTitle(""); emugl = new MainUI(this);