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

Import xml from API

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 3 Posters 1.0k 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.
  • K Offline
    K Offline
    korsarqa
    wrote on 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
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on 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 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
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on 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
          • p3c0P Offline
            p3c0P Offline
            p3c0
            Moderators
            wrote on 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

            • Login

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