Are you talking about some specific readready() signal or some coded by you?
Are you talking about some specific readready() signal or some coded by you?
my fault type-o, I mean the readyread() signal that is standard with the a QNetworkReply instance. (it emit's automatically when the http response has data ready to be written somewhere.) It's not a signal i wrote, it comes with the QNetworkReply
One idea* is:
Create a slot without parameters in some place with access to data string. Connect readyread() with this slot.
Declare a signal with a string parameter.
And in the first slot you can emit the other signal with parameter (which will be connected to your slot that expects a string)
*You must think about other ideas all depends on how your classes are designed
Or even direct function call, slots are member functions, so can be called just like any other member function.
//Consider using QString instead std::string.
Bookmarks