Hi,
We already have condition for QUrlQuery class as below. It will be used only if Qt version is >= 5.0.
#if QT_VERSION >= 0x050000
// Extract filename and query from encoded URL
QUrlQuery query_data(reply->url());
QString file_name = query_data.queryItemValue("filename");
QString query = query_data.queryItemValue("query");
#else
QUrl url(reply->url());
QString file_name = url.queryItemValue("filename");
QString query = url.queryItemValue("query");
#endif
In your case, it may possible that during qmake - Qt version is detected as 5 but you are compiling against Qt 4 so application is not able to find the QUrlQuery class.
Can you please share console log and Makefile when you run the qmake command with project file ?
Thanks,
Neel Patel