Add logo to application
MODIFY
RISC-V-sim.pro
RISC-V-sim.pro
@@ -62,3 +62,6 @@ HEADERS += \
SOURCES += \
external/QCustomPlot/qcustomplot.cpp
+
+RESOURCES += \
+ resources/images.qrc

ADD
resources/images.qrc
+<RCC>
+ <qresource prefix="/logos">
+ <file>logo.png</file>
+ </qresource>
+</RCC>

ADD
resources/logo.png
resources/logo.png
Binary files /dev/null and b/resources/logo.png differ

MODIFY
src/mainwindow.cpp
src/mainwindow.cpp
MainWindow::MainWindow(Runner *runnerPtr, Parser *parserPtr, QWidget *parent)
: QMainWindow(parent), m_ui(new Ui::MainWindow) {
m_ui->setupUi(this);
- setWindowTitle("RISC-V simulator");
+ setWindowTitle("RISC-V Simulator");
+ setWindowIcon(QIcon(QPixmap(":/logos/logo.png")));
m_runnerPtr = runnerPtr;
m_parserPtr = parserPtr;

Add logo to application