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. XmlListModel and Xml Role problem.

XmlListModel and Xml Role problem.

Scheduled Pinned Locked Moved QML and Qt Quick
7 Posts 3 Posters 1.9k 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.
  • W Offline
    W Offline
    wilson_chan
    wrote on last edited by
    #1

    Hai, I have work out with XmlRoleModel before and it running well.

    But I have change the query path to suite my Xml file, but it close unexpectedly finished.

    My file is as below :

    Xml :

    <plist version="1.0">
    <dict>
    <key>Kuala Lumpur</key>
    <key>Penang</key>
    <key>Selangor</key>
    <key>Kelantan</key>
    </dict>
    </plist>

    XmlListModel {
    id: model1
    property bool loading: status == XmlListModel.Loading

    source: "http://appsfactory.my/client/canonmsia2/android/fws/academy.php"

    query: "/plist/dict/key"

    XmlRole { name: "location"; query:"string()" }
    }

    In this case, I would like to get all key data but it close unexpected.
    May I know is there any solution to solve it??

    1 Reply Last reply
    0
    • G Offline
      G Offline
      geronik
      wrote on last edited by
      #2

      KAspersky antivirus found that there is a trojan in an application run when I clicked on the link


      1 Reply Last reply
      0
      • T Offline
        T Offline
        tucnak
        wrote on last edited by
        #3

        [quote author="geronik" date="1342512549"]****
        KAspersky antivirus found that there is a trojan in an application run when I clicked on the link
        ****[/quote]

        Hmm.. Waiting for comments from ~wilson_chan...

        1 Reply Last reply
        0
        • G Offline
          G Offline
          geronik
          wrote on last edited by
          #4

          Kaspersky antivirus must have deleted some files or put them on carantine , don't know what exactly did though.. and the problems started.. QtCreator cannot build my project. Panic reaction : I am reinstalling QtSDK.
          I will post again in a while..

          1 Reply Last reply
          0
          • G Offline
            G Offline
            geronik
            wrote on last edited by
            #5

            And.. it is working! must have deleted some files necessary for the build process.

            1 Reply Last reply
            0
            • W Offline
              W Offline
              wilson_chan
              wrote on last edited by
              #6

              May I ask what is the point of kaspersky related to my post??

              1 Reply Last reply
              0
              • G Offline
                G Offline
                geronik
                wrote on last edited by
                #7

                @wilson_chan as I said in previous posts what I did is : click on the link of your post and then Kaspersky AntiVirus, reported that there was a trojan installed, the trojan was deleted and started scanning etc.. also kaspersky found phising urls which I will not post here.

                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