Thank You Andrey.
That too did work some wonders. At this point these little things really
are wonders to me :)
Basically now I have a nicely structured listing that is fetching the
wanted data from an Internet source.
By using spacing I could make the listing more readable if needed. So
learne
You should set elements position yourself. Elements itself have no idea
where each should be placed and drawing at (0,0) position by default.
Good idea will be to use Column as main element and place your text
inside it. So, it should be something like:
delegate: BackgroundItem{
Thank you for the generous insights gents.
While I'm still learning from ground up these simplest things with Qt
delegate was the thing here to get some flesh on the bones (as in: getting
something to show up on the emulator screen).
The first code I used did work so I merely did expand on top of
Hi Jani,
As somebody else wrote: JSON is the native data format for QML.
I'm using XMLHttpRequest and JSON.parse() for my project.
Maybe this is something for you.
greets,
Michael.
On Tuesday 12 May 2015 22:58:16 Jani Nuutinen wrote:
> I'm trying early on to familiarize myself with passing data
Hi,
Is your first question "How you should do to display the data which are get
from the XML" ?
I think you should add "delegate" property and some codes to do it.
import QtQuick 2.0
import Sailfish.Silica 1.0
import QtQuick.XmlListModel 2.0
Page{
id: root
XmlListModel{
i
In the SilicaListView add:
delegate: Text { text: body}
And the text will be shown
From: Andrey Kozhevnikov
To: devel@lists.sailfishos.org
Sent: Tuesday, May 12, 2015 9:59 PM
Subject: Re: [SailfishDevel] Getting simple XML to show on the emulator
Using XML is not simplest for
Hi Andrey and thanks for the quick reply!
Certainly I might then look into using JSON. It remains to be seen if I'll
be returning later on with a similar question but that time hand in hand
with JSON :)
Best regards
On Tue, May 12, 2015 at 10:59 PM, Andrey Kozhevnikov wrote:
> Using XML is
Using XML is not simplest for QML. Native data format for QML/JavaScript
is JSON.
13.05.2015 00:58, Jani Nuutinen пишет:
I'm trying early on to familiarize myself with passing data to the
phone from the Internet and just for starters I chose to use a simple
XML-file to see if I could make some
I'm trying early on to familiarize myself with passing data to the phone
from the Internet and just for starters I chose to use a simple XML-file to
see if I could make something out myself. I do not know if using XML from
Internet source is the simplest or the smartest method, but trying to
follow