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. Qt quick application- how do i get text data from a web page.
Forum Updated to NodeBB v4.3 + New Features

Qt quick application- how do i get text data from a web page.

Scheduled Pinned Locked Moved Solved QML and Qt Quick
5 Posts 2 Posters 783 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.
  • NIvil WilsonN Offline
    NIvil WilsonN Offline
    NIvil Wilson
    wrote on last edited by
    #1

    sir,
    could you please tell me how do i get text data( contact information etc from a website's about page) from a web page..

    jsulmJ 1 Reply Last reply
    0
    • NIvil WilsonN NIvil Wilson

      sir,
      could you please tell me how do i get text data( contact information etc from a website's about page) from a web page..

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @NIvil-Wilson See https://doc.qt.io/qt-5/qnetworkaccessmanager.html

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      NIvil WilsonN 1 Reply Last reply
      0
      • jsulmJ jsulm

        @NIvil-Wilson See https://doc.qt.io/qt-5/qnetworkaccessmanager.html

        NIvil WilsonN Offline
        NIvil WilsonN Offline
        NIvil Wilson
        wrote on last edited by
        #3

        @jsulm
        sir how do i get required data from qnetworkaccessmanager instance.could you please explain .

        jsulmJ 1 Reply Last reply
        0
        • NIvil WilsonN NIvil Wilson

          @jsulm
          sir how do i get required data from qnetworkaccessmanager instance.could you please explain .

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @NIvil-Wilson You download the data and parse it then. How exactly to parse depends on the web-site - there is no general rule. How to download (from the link I posted):

          QNetworkAccessManager *manager = new QNetworkAccessManager(this);
          connect(manager, &QNetworkAccessManager::finished,
                  this, &MyClass::replyFinished);
          
          manager->get(QNetworkRequest(QUrl("http://qt-project.org")));
          

          There are also examples, for example: https://doc.qt.io/qt-5/qtnetwork-http-example.html

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          NIvil WilsonN 1 Reply Last reply
          0
          • jsulmJ jsulm

            @NIvil-Wilson You download the data and parse it then. How exactly to parse depends on the web-site - there is no general rule. How to download (from the link I posted):

            QNetworkAccessManager *manager = new QNetworkAccessManager(this);
            connect(manager, &QNetworkAccessManager::finished,
                    this, &MyClass::replyFinished);
            
            manager->get(QNetworkRequest(QUrl("http://qt-project.org")));
            

            There are also examples, for example: https://doc.qt.io/qt-5/qtnetwork-http-example.html

            NIvil WilsonN Offline
            NIvil WilsonN Offline
            NIvil Wilson
            wrote on last edited by NIvil Wilson
            #5
            This post is deleted!
            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