Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. XML List Model can help with non-XML APIs?
QtWS25 Last Chance

XML List Model can help with non-XML APIs?

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 2 Posters 2.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • AlicemirrorA Offline
    AlicemirrorA Offline
    Alicemirror
    wrote on last edited by
    #1

    Hi,

    I (probably) have a problem. I am using with satisfaction XmlListModel features in the project "RC Hobby Stream":https://projects.forum.nokia.com/rchobbystream using the Twitter api to access to some informations on users and tweets. Twitter releases standard API that return after every call a well-formed XML file

    In the project "Naijanimi Free SMS":https://projects.forum.nokia.com/naijanimi I have to access Internet API too, with the difference that these returns text strings and not XML. XmlListModel features can also be adapted to a case of this kind?

    Enrico Miglino (aka Alicemirror)
    Balearic Dynamics
    Islas Baleares, Ibiza (Spain)
    www.balearicdynamics.com

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      No. XmlListModel works on XML. If you need to support other types of feeds, you may need to create your own QAbstractListModel based model and use that from your QML.

      1 Reply Last reply
      0
      • AlicemirrorA Offline
        AlicemirrorA Offline
        Alicemirror
        wrote on last edited by
        #3

        Andre, you are great! When I post some kind of questions, I think "hope Andre read this..." :)

        Well, I was supposing. Do you know if there are some good examples ? Thanks

        Enrico Miglino (aka Alicemirror)
        Balearic Dynamics
        Islas Baleares, Ibiza (Spain)
        www.balearicdynamics.com

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          No, sorry. I don't know any examples for that. However, Qt supplies all the components you need to build such an interface. QNetworkAccessManager can be used to access your webservice and QAbstractListModel can be used as a basis to build your model on. It all depends on the way your webservice actually works how to do the implementation of this, of course.

          1 Reply Last reply
          0
          • AlicemirrorA Offline
            AlicemirrorA Offline
            Alicemirror
            wrote on last edited by
            #5

            Thank you for this suggestion, very useful for orientation. If you like to know how I implement this solution asap you can follow the mentioned project.
            What I am doing at this moment is the creation of the wiki pages describing the api and related answer format.

            Enrico Miglino (aka Alicemirror)
            Balearic Dynamics
            Islas Baleares, Ibiza (Spain)
            www.balearicdynamics.com

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved