Unsolved What is the equivalent of qml's Image type in C++?
-
How can I load an image to a window using c++ like we do with the Image type in qml.
Image{ id: image source: "image.png" }
-
-
@J-Hilk Thank you, do you have an Idea how to implement it in a qt3DWindow ?
-
@sofiane Thats a different pig to slaughter!
I have no idea, never used Qt3D, but looking at the documentation / examples, maybe by mapping a QTextureImage to a rectangle ?
Similar to this example:
https://doc.qt.io/qt-5.10/qt3d-materials-cpp-example.html