Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

applicaton icon Qt5.2, Windows and Linux, QML

$
0
0
Hello!! Very simple problem: I can not figure out how to change the application icon from default (the icon on the top left of the window). From, http://qt-project.org/doc/qt-5/appicon.html, it seems I just need to call, “the QWindow::setWindowIcon() method”. The code below is from main.cpp. QGuiApplication doesn’t have a setWindowIcon(). I can’t find any methods to set window icon. I see RC_ICONS for qmake but we are using CMake… #include <QtQuick> int main(int argc, char *argv[]){     QGuiApplication app(argc, argv);         QQmlApplicationEngine engine(QUrl("qrc:/resources/qml/main.qml"));     return app.exec(); } Please advise me how to set the applicaton icon in Qt5.2 (QML app). Sincere thanks! p.s. I’m sure this is covered in another post but I’m having problems searching posts for some reason.

Viewing all articles
Browse latest Browse all 4972

Trending Articles