How to set imageSource
on ImageView
as url?
ImageView {
imageSource: "http://myrrix.com/wp-content/uploads/2012/06/stackoverflow.png"
}
This is not working, I can only set the image as "asset:enter code here
///images/myimage.png" on the ImageView. How to set the source to be from URL?
You can not directly load image from web. You need to make a network request using QNetworkRequest, QNetworkAccessManager, and QNetworkReply classes & on getting reply load that QByteArray in ImageView.
& in onReply() slot you can load image: