Michi, I don't think this case should be dismissed so quickly. If one
creates a new default app template with out SDK, putting images into qrc
files is the default way to go. In order to create games that look good
on big screens like tablet, but still perform well on small screens and
weak hardware, the thumbnailer could be an ideal helper so that
developers can provide large graphics in their package but use the
thumbnailer to size them properly for the current device.


I think simon just forgot the "image://thumbnailer/" in the above example but 
he really meant that. I've added it.

** Description changed:

  The thumbnailer works only if I load images from the file system, not
  from a resource file:
  
-     Image {
-         id: backgroundImage
-         anchors.fill: parent
-         sourceSize: Qt.size(parent.width, parent.height)
-         source: "qrc:///images/menu-background.jpg"
-     }
+     Image {
+         id: backgroundImage
+         anchors.fill: parent
+         sourceSize: Qt.size(parent.width, parent.height)
+         source: "image://thumbnailer/qrc:///images/menu-background.jpg"
+     }
  
  The default sdk template uses qrc as template.

** Changed in: thumbnailer (Ubuntu)
       Status: Invalid => New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1550706

Title:
  Thumbnails not working with qrc

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-developer-experience/+bug/1550706/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to