The macro is called SIGNAL() not SINGAL().
The argument of the SIGNAL() macro is a prototype for the function not a call to it.
The slot should accept the argument passed with the signal if you expect to do anything useful with it.
Combining:
// and
void showRespHeader(const QHttpResponseHeader& resp)
{
// do something with the HTTP response code you receive, e.g. 302, 404 etc.
}
connect(&myHttp, SIGNAL(responseHeaderReceived(QHttpResponseHeader)), this, SLOT(showRespHeader(QHttpResponseHeader));
// and
void showRespHeader(const QHttpResponseHeader& resp)
{
// do something with the HTTP response code you receive, e.g. 302, 404 etc.
}
To copy to clipboard, switch view to plain text mode
My response to the first time you tried to ask this stands. Why didn't you just edit that first post?
Bookmarks