Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
5.3.2
-
None
-
Qt 5.3.2 Windows 7 + Qt Creator 3.2.1
Description
In project example "Examples\Qt-5.3\quick\controls\gallery\gallery.pro", open "content\Styles.qml", in "fireball" element, replace
source: "../images/bubble.png"
with
source: "http://qt-project.org/doc/qt-5/images/used-in-examples/gallery/images/bubble.png"
The image seems to be loaded after the construction of the element but is never displayed on screen. The "fireball.status" changes to "0" to "9" then "0" again whereas an image is correctly defined (0 means Image.Null, ie no image is defined).
A workaround is to not define the "source" proprety of "fireball" and to add another image element:
Image { //loader for ImageParticle because of bug source: "http://qt-project.org/doc/qt-5/images/used-in-examples/gallery/images/bubble.png" onStatusChanged: { if (status === Image.Ready) fireball.source = "http://qt-project.org/doc/qt-5/images/used-in-examples/gallery/images/bubble.png" } }
Since the image is put into a cache, the fireball element will be loaded immediately.