I'm trying to do a simple GET request using QNetworkReply but finished() never get's called, here is my code
QtTest::QtTest(QWidget *parent):QWidget(parent){
ui.setupUi(this);
auto network_access_manager = new QNetworkAccessManager(this);
auto reply = network_access_manager->get(QNetworkRequest(QUrl("http://www.whatsmyip.org/")));
connect(reply, SIGNAL(finished()), this, SLOT(download_finished()));
qDebug() << "Started";
}
void QtTest::download_finished() {
qDebug() << "Finished";
}
If I check output on startup I get
QObject::connect: Cannot connect (null)::aboutToQuit() to QNativeWifiEngine::closeHandle()
Exception thrown at 0x749040F8 (KernelBase.dll) in QtTest.exe: 0x000006A6: The binding handle is invalid.