[Interest] error setting app icon on OS X

Freddy Martinez Garcia freddy311082 at gmail.com
Mon Jul 7 09:17:11 CEST 2014


Hi guys...

I had develop my app using QtQuick and I can't put the app icon

I had look over internet but the advises does not fix my problem...

I had generate a XCode project to put there my icons and it doesn't work...

i had read this http://qt-project.org/doc/qt-5/appicon.html but I can't put the icon

my main.cpp is this:

#include <QApplication>
#include <QQmlApplicationEngine>
#include <QIcon>

int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    QQmlApplicationEngine engine;
    engine.load(QUrl(QStringLiteral("qrc:///main.qml")));
    app.setWindowIcon(QIcon("://adviser.icns"));

    return app.exec();
}


and I had added to mi .pro this line:

ICON = adviser.icns


so... where is my problem ??

best regards


Freddy Martinez Garcia
Lic. Ciencia de la Computacion
C++ and Qt Senior Developer
Software Manager at Eulerideas
www.eulerideas.com
freddy311082 at gmail.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140707/f21f8019/attachment.html>


More information about the Interest mailing list