Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QQuickImageProvider complete example
brajan1984 last edited by
I'm really new in qt and qml. I try to learn this a bit, but I have some problem now. I'm trying to get access to qml Image object from my c++ code and set an image into it. I was trying to use examples from this "example topic":http://qt-project.org/forums/viewthread/29227. Only thing I could get is and random pattern based on image I want to load.
If somebody could share with me the simplest example which shows how to set an image to qml Image object from c++ class. Image is of course an QImage object.
Example could look like this:
- In c++: read image from file to QImage object
- Set it to qml Image object and show it on screen.
I just can't get an idea what is behind the QtQuickImageProvider object :/
Any help will be appreaciated :)