When starting the program, an error is displayed. There are no logs in the console. I do a get-request to the server and that's it. https://github.com/Radzhab/QTparser/tree/master/QTparser

#include "mainwindow.h" #include "ui_mainwindow.h" MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); } MainWindow::~MainWindow() { delete ui; } void MainWindow::on_pushButton_clicked() { ui->pushButton->setText("Запуск с рабочего компа"); } 

//////////////////////////////

 #include "httphelper.h" #include <QtNetwork/QNetworkAccessManager> #include <QtNetwork/QNetworkReply> #include <QEventLoop> #include <QEvent> #include <QObject> HttpHelper::HttpHelper() { } void HttpHelper::GetHtml() { QNetworkAccessManager manager; QNetworkRequest request(QUrl("http://qt-project.org")); request.setAttribute(QNetworkRequest::FollowRedirectsAttribute, true); QNetworkReply *response = manager.get(request); QEventLoop event; connect(response,SIGNAL(finished()),&event,SLOT(quit())); event.exec(); QString html = response->readAll(); // Source should be stored here } 
  • Put the whole project on githab or somewhere else. Guessing over the scraps of source code is a waste of time. - gbg
  • crosses, this is for real bearded men! ) - Vladimir Gamalyan
  • what kind of crosses?) - Rajab
  • " There are no logs in the console " - and why did the debugger invented? - PinkTux

1 answer 1

There are no problems in your code - I have everything going and started.

Try to delete the build directory - the one that build_...

The only potential problem is that you should not write messages in Russian in the source code; for this, there are localization tools - Qt Linguist.