Native icons in QML on MeeGo Harmattan
Hi does anyone know if it’s possible to access the icons for the current theme and use them in QML?
Thanks I knew this actually but was wondering if there was nicer way of doing that than:
- class PlatformIconProvider : public QDeclarativeImageProvider
- QImage result;
- qDebug() << "Loaded: " << id;
- return result;
See the example gallery [qt.gitorious.org] they use
- background: "image://theme/meegotouch-wallpaper-portrait";
So for example
I confirm that this works for me.