add icon
This commit is contained in:
@ -36,6 +36,8 @@ qt_add_qml_module(appscheincommander
|
||||
URI scheincommander
|
||||
VERSION 1.0
|
||||
RESOURCES
|
||||
scheincommander.png
|
||||
scheincommander.ico
|
||||
icons/movinghead.png
|
||||
icons/nebelmaschine.png
|
||||
icons/rgbstrahler.png
|
||||
|
4
main.cpp
4
main.cpp
@ -3,6 +3,7 @@
|
||||
#include <QQmlApplicationEngine>
|
||||
#include <QQmlContext>
|
||||
#include <QDebug>
|
||||
#include <QIcon>
|
||||
|
||||
#include "dmxcontroller.h"
|
||||
#include "scheincommandersettings.h"
|
||||
@ -31,6 +32,9 @@ int main(int argc, char *argv[])
|
||||
QCoreApplication::setApplicationVersion(STR(CMAKE_PROJECT_VERSION));
|
||||
|
||||
QGuiApplication app{argc, argv};
|
||||
QIcon icon{":/scheincommander/scheincommander.png"};
|
||||
qDebug() << icon.availableSizes();
|
||||
app.setWindowIcon(icon);
|
||||
|
||||
QCommandLineParser parser;
|
||||
parser.addHelpOption();
|
||||
|
BIN
scheincommander.ico
Normal file
BIN
scheincommander.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
BIN
scheincommander.png
Normal file
BIN
scheincommander.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
Reference in New Issue
Block a user