Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've a Qt5/QML hybrid app built with Ubuntu Touch SDK. I'm trying to set the app icon for it, but without success. Code looks like this:

int main(int argc, char *argv[])
    QApplication app(argc, argv);
    QtQuick2ApplicationViewer viewer; // is this part of the problem perhaps?
    viewer.setMainQmlFile(...);  // works and i see my page

    return app.exec();

It clearly looks for the svg (changing the path generates an error), but this doesn't change the icon used when I press Alt + Tab, or look at the side bar icon (a ? icon).

What am I doing wrong?

share|improve this question
This should answer your question: – Salem Aug 21 '13 at 22:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.