But, it’s a question of what you get from the web server. If you ‘know’ the the uri structure to images, you can just ‘assign’ that to Image{ src: } EDIT: look at harbour-hafenschau/blob/master/qml/models/NewsModel.qml to see how he uses API.
The ambienced question is probably one for @nephros?
Blacksheeps Code did far more than i need. I dunno want to copy his work 1:1. My first App is like a study for me so i will not release anything until my own base template works 100%.
I know that there are other great ways to combine c++, javascript or phyton to it but when things can get realised with pure QML i will try it. The QtBuilder-Environment is a great help but i prefer to “live hack” on my device because it’s a fast way to develop and i’m output-driven.
But, it’s a question of what you get from the web server. If you ‘know’ the the uri structure to images, you can just ‘assign’ that to Image{ src: }
I’m in control of my Webspace and have there my own PHP-Scripts which can convert text/image like i want. Surely they can be exchanged later with native Sailfish-Functions.
lists the methods, there is createAmbience but I don’t know its payload/parameter. It’s either a path to an image, or a JSON string I guess. There’s also setAmbience for switching to an existing one.
Images: if as you say you have control of the server, you can make an XHR call, have it return a data: url string for images and just assign that to Image::source.
That way you don’t have to deal with binary data in the response.