How to access properties of image loaded by canvas.loadImage?
Unsolved
QML and Qt Quick
-
I am making an app that loads lots of images from URLs via the canvas' loadImage function. I later draw them by getting the canvas' 2D context and calling its drawImage function and providing the same URLs. But, I cannot figure out how to get access to the image objects so that I can query width and height. The loadImage function is async and does not return an object. The API documentation for the imageLoaded function does not list any parameters. What am I missing?