How to display raw image data with qml?
QML and Qt Quick
3
Posts
2
Posters
3.7k
Views
1
Watching
-
wrote on 21 Jun 2013, 06:09 last edited by
- My image data is NOT located in any url. Instead It's located in memory and I don't want to save it to disk forsake of performance. How to display it in qml? by means of Canvas?
-
wrote on 21 Jun 2013, 06:36 last edited by
You can create a custom image provider:
http://qt-project.org/doc/qt-5.0/qtquick/qquickimageprovider.html
After this you should be able to use your custom images like any other images by passing a custom url.
-
wrote on 21 Jun 2013, 06:47 last edited by
Thanks, it seems is what i need.
3/3