I'm currently reading the QML docs, and I realized that there is no explanation on how to define the app icon.
I tried something, but this doesn't work:
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication app(argc, argv);
app.setWindowIcon(QIcon(":/favicon.ico"));
QQmlApplicationEngine engine;
engine.load(QUrl(QLatin1String("qrc:/main.qml")));
return app.exec();
}
Can someone enlighten me? Thanks in advance:)
win32:RC_ICONS += appicon.ico
to your PRO file. – dtech