QT6 QNetworkAccessManager::finished slot and signal discrepancy problem
Solved
General and Desktop
-
Hello,
I hope this goes is the right place to ask this question.I am getting "static assertion failed: Signal and Slot arguments are not compatible" while trying to connect QNetworkManager::finished -signal to a slot that should take QNetworkReply according to the documentation over here
https://doc.qt.io/qt-6/qnetworkaccessmanager.htmlHere is my default constructor and the slot that is supposed to take the QNetworkReply parameter.
GoodreadsDataPull::GoodreadsDataPull(QObject *parent, DataHandler &handler) : QObject{parent} { network_manager = new QNetworkAccessManager(this); connect(network_manager, &QNetworkAccessManager::finished, this, &GoodreadsDataPull::BookSearchParse); } void GoodreadsDataPull::BookSearchParse(QNetworkReply *reply) { // some code to be written }
Thanks in advance. If I have overlooked something obvious I apologize.
~Mortem -
Hi and welcome to devnet,
Which exact version of Qt are you using ?
-