Qt quick application- how do i get text data from a web page.
-
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.. -
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.. -
@jsulm
sir how do i get required data from qnetworkaccessmanager instance.could you please explain . -
@jsulm
sir how do i get required data from qnetworkaccessmanager instance.could you please explain .@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-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
This post is deleted!