Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Is bindVariable() in the XML classes two-way?
Forum Updated to NodeBB v4.3 + New Features

Is bindVariable() in the XML classes two-way?

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 483 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.
  • N Offline
    N Offline
    nicky j
    wrote on last edited by
    #1

    Hello,

    I am interested in building a Qt C++ program that queries an XML file using XQuery and returns the data retrieved to the C++ program, the data received would be assigned to variables used in other parts of my c++ program. Essentially I want to use an XML file to store the data, XQuery to retrieve the data, and C++ to assign the data to variables to do stuff with. I have read all the examples and docs about interacting with XML and XQuery and I do not find them very helpful. I see that the bindVariable() function allows you to set the value of variables located within the XQuery file. Can it also be used the opposite way allowing me to set the value of variables in the C++ program with data that the XQuery has found?

    Could you also provide some simple example code?

    Thanks!

    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