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. Import xml from API
Forum Update on Monday, May 27th 2025

Import xml from API

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 3 Posters 1.0k 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.
  • K Offline
    K Offline
    korsarqa
    wrote on 6 Sept 2014, 19:36 last edited by
    #1

    Good day!
    I can't import xml from API with QNetworkAccessManager
    Another problem is that in order to enter the API must enter your login and password
    I do not know programming, and it would be better to see an example
    Help please

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 6 Sept 2014, 20:54 last edited by
      #2

      Hi,

      You'll have to be more specific, importing xml using QNetworkAccessManager isn't really clear. Do you want to make calls to a REST server through QML ?

      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
      • K Offline
        K Offline
        korsarqa
        wrote on 7 Sept 2014, 10:23 last edited by
        #3

        [quote author="SGaist" date="1410036879"]Hi,

        You'll have to be more specific, importing xml using QNetworkAccessManager isn't really clear. Do you want to make calls to a REST server through QML ?[/quote]

        most likely yes, is there an alternative?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 7 Sept 2014, 19:04 last edited by
          #4

          Look in the documentation for QML XMLHttpRequest

          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
          • P Offline
            P Offline
            p3c0
            Moderators
            wrote on 8 Sept 2014, 06:48 last edited by
            #5

            Hi,

            bq. Another problem is that in order to enter the API must enter your login and password

            If using QNetworkAccessManager to download, you can connect signal "authenticationRequired":http://qt-project.org/doc/qt-5/qnetworkaccessmanager.html#authenticationRequired to a slot and do the authentication there.

            157

            1 Reply Last reply
            0

            1/5

            6 Sept 2014, 19:36

            • Login

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