Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Create QML Image from C++



  • Hi,
    how to create dynamically QML Image element from C++?

    I'm creating puzle game with variable count of tiles. Each tile is represented by the image element in QML. I will then supply QImage to the image QML element via QQuickImageProvider. Or is there better solution?



  • @MartinD said:

    Or is there better solution?

    Yes, provide image sources as a model from C++, create the visuals ie. QML Image elements in QML.


Log in to reply