QNetworkRequest request();
request.setRawHeader("", "");
error: request for member 'setRawHeader' in 'request', which is of non-class type 'QNetworkRequest()'
QString s = "test";
QNetworkRequest request(QUrl(s));
request.setRawHeader("", "");
error: request for member 'setRawHeader' in 'request', which is of non-class type 'QNetworkRequest(QUrl)
QUrl reqUrl(url);
QNetworkRequest req(reqUrl);
QNetworkRequest req(QUrl("some_url"));
The fact that ScopedLock lock() is a function declaration instead of an object constructor with no parms caused me great grief today.
QNetworkRequest request((QUrl(s)));
QString s = "test";
QNetworkRequest request(QUrl(s));
request.setRawHeader(QByteArray(""), QByteArray(""));
QNetworkRequest request;
request.setRawHeader("", "");
T x1;
T x2();