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 query!
Qt 6.11 is out! See what's new in the release blog

Xml query!

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 1.5k Views 1 Watching
  • 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.
  • R Offline
    R Offline
    ReshmaS
    wrote on last edited by
    #1

    I need to form a query containg both variable and method. I tried to do it but ended up in cardinality error. I dont have any idea on why is it showing such an error. THe xml code is as follows:

    @<CI>

    <VARIABLE Name="Info" Type="eSTRING" Default="Info" Min="0" Max="0" AccMode="RW" AccLevel="USER" Storage="User">
    <UI Group="Variable" Widget="xxx">
    </UI>
    </VARIABLE>

    <METHOD Name="user_login" AccLevel="ALL">
    <PARAM Name="PWHash" Type="eINT32"/>
    <UI Group="Group1" Widget="MethodWidget">
    </UI>
    </METHOD>@

    The Qml query I gave is :

    @
    query: "/CI"
    XmlRole { name: "Name1"; query: "VARIABLE/@Name/string()" }

        XmlRole { name: "Name"; query: "METHOD/@Name/string()" }
    

    @

    Any suggestion on how this could be improved.

    Reshma

    1 Reply Last reply
    0
    • R Offline
      R Offline
      ReshmaS
      wrote on last edited by
      #2

      Reshma

      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