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. QT with XML
Forum Updated to NodeBB v4.3 + New Features

QT with XML

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 3 Posters 1.2k 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.
  • B Offline
    B Offline
    BinuJanardhanan
    wrote on last edited by
    #1

    How can I parse XML file and create a UI based on parsed XMl ?

    VRoninV 1 Reply Last reply
    0
    • JohanSoloJ Offline
      JohanSoloJ Offline
      JohanSolo
      wrote on last edited by
      #2

      Reading XML can be achieved using the QXmlReader class.
      For your second question, it's hard to guess waht you want to achieve... Give us more details if you want useful answers.

      `They did not know it was impossible, so they did it.'
      -- Mark Twain

      B 1 Reply Last reply
      1
      • JohanSoloJ JohanSolo

        Reading XML can be achieved using the QXmlReader class.
        For your second question, it's hard to guess waht you want to achieve... Give us more details if you want useful answers.

        B Offline
        B Offline
        BinuJanardhanan
        wrote on last edited by
        #3

        @JohanSolo
        Thanks for your response.
        Is there any example code for QXmlReader ?
        What is the differents between Qxmlreader and QXmlSimpleReader classes ?

        JohanSoloJ 1 Reply Last reply
        0
        • B BinuJanardhanan

          @JohanSolo
          Thanks for your response.
          Is there any example code for QXmlReader ?
          What is the differents between Qxmlreader and QXmlSimpleReader classes ?

          JohanSoloJ Offline
          JohanSoloJ Offline
          JohanSolo
          wrote on last edited by
          #4

          @BinuJanardhanan said in QT with XML:

          Is there any example code for QXmlReader ?
          What is the differents between Qxmlreader and QXmlSimpleReader classes ?

          There are several IIRC. If you look at the doc, it:

          1. gives you examples;
          2. tells you that QXmlSimpleReader is SAX API, and QXmlReader is StAX.

          `They did not know it was impossible, so they did it.'
          -- Mark Twain

          1 Reply Last reply
          0
          • B BinuJanardhanan

            How can I parse XML file and create a UI based on parsed XMl ?

            VRoninV Offline
            VRoninV Offline
            VRonin
            wrote on last edited by
            #5

            @BinuJanardhanan said in QT with XML:

            create a UI based on parsed XMl

            if you can convert or adapt your XML format to Qt's one, you can use uic to do this (in fact, .ui files are xml and converting them to code that creats a UI is what uic is for)

            If you want to stick with your own syntax the uic source code is still probably the best place to start to get inspiration

            "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
            ~Napoleon Bonaparte

            On a crusade to banish setIndexWidget() from the holy land of Qt

            1 Reply Last reply
            2

            • Login

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