Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  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 Language Bindings
3 Posts 2 Posters 1.1k 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 posted this thread already in the 'General' forums, but I figured that I may as well throw it here as well because this forum appears to be a bit more focused on what I'm trying to do. Sorry for the duplication, please let me know if its out of line. Disclaimer aside, on to the question:

    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
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Please don't post the same thread in multiple sub forums, one is enough

      "Duplicate":http://qt-project.org/forums/viewthread/38350/

      You're mistaken about Language Bindings, this sub forum rather concerns libraries like PySide i.e. using Qt libraries from other languages (Python, Ruby, Java etc…)

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • N Offline
        N Offline
        nicky j
        wrote on last edited by
        #3

        Oh I'm so sorry, my apologies

        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