2013-08-02 40 views
1

這是我的代碼,我想從給定的URL加載圖像,請告訴我們,如果有任何方式.becasue這不加載圖像如何從URL中QML加載圖像沒有QT C++

ImageView { 

      imageSource: "http://upload.wikimedia.org/wikipedia/commons/9/97/Toda_Hut.JPG" 
      preferredWidth: 610 
      translationY: 70.0 
      translationX: 70.0 
      preferredHeight: 250 
     } 

回答

3

BB10當前不支持ImageView的URL。在測試階段有人提到它即將到來,但它不再列在路線圖上。

- 編輯:根據Kernald - 這個特徵仍然在路線圖中。

Javascript不支持直接下載文件,這意味着如果你想完成這些,你將不得不實現一些C++。

這方面最好的例子就是從這裏正式例子之一: https://github.com/blackberry/Cascades-Samples/tree/master/imageloader

您應該能夠即使複製了一些C++的類和落實到你的應用程序不會有太大困難,你的知識的C++很弱。

+0

它已被延遲,但它仍然列出:https://developer.blackberry.com/cascades/download/roadmap/ –

+0

我的壞,找幾週迴來時找不到它,也許它只是意外地在短時間內被移除。 – hyarion

+0

或者你也許看過本地路線圖:https://developer.blackberry.com/native/downloads/roadmap/ ;-) –