How to load image from URL in QML not in QT C++

This is my code and i want to load image from the given URL please tell if there is any way .becasue this is not loading the image

 ImageView {

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

Answers


BB10 Does not currently support a URL for an ImageView. There was mentions during the beta stage that it was coming but it is no longer listed on the roadmap.

--edit: As per Kernald - this feature is still in the roadmap.

Javascript does not support direct downloading of files which means you will have to implement some c++ if you want to accomplish this.

The best example of this is from one of the official examples here: https://github.com/blackberry/Cascades-Samples/tree/master/imageloader

You should be able to copy some of the c++ classes and implement it into your app without too much difficulty, even if your knowledge of c++ is weak.


Need Your Help

How to get a object with a special id out of the stack?

java stack loops identifier

In my cardgame-project, I simulate a cardpile with a stack. Each card of the pile/stack has an unique identifier.

opacity and z-index on stacking order of elements

html css z-index opacity

Here is my code, if you click on junction of divs you can see that divleft is the greatest stack in order. but I'm trying to set the greatest stack as "divright". z-index is not working,

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.