QQuickImageProvider update notification
Unsolved
General and Desktop
-
I use a QQuickImageProvider to provide images from my C++ class to QML user interfaces.
It works fine but the QML page request the image only at creation. I update the image in my QQuickImageProvider class and I want to update the QML Image according.I set the cached property to false, but it didn't help.
-
The workaround that appends a suffix to the requested image does the trick:
image.source = "image://images/myImage?id=" + Math.random()
but it's quite dirty. I wonder if there is a more elegant way (i.e. using signals) to keep the image source updated.
2/2