Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Problem with Canvas loading pictures

$
0
0
I guess that the loadImage will not load the image again if already loaded. Meaning that when you call loadImage on the third click the call to loadImage(…1.png) will not trigger onImageLoaded. You could use the isImageLoaded call in the onClick to check if it needs loading, if already loaded you can call the drawImage directly.

Viewing all articles
Browse latest Browse all 4972

Trending Articles