Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

connecting to a web service using Qt5.0.1

$
0
0
Hello, I am working with microsoft visual studio 2010, c++ project with Qt5.0.1. I try to connect to remote web service, but I cant find the right connect(..) function to use. here is my code: QNetworkAccessManager* m_pNetworkManager = new QNetworkAccessManager(); QString qstrWSPathData = QString::fromWCharArray((LPCTSTR)WSPathData, WSPathData.GetLength()); QUrl url(qstrWSPathData); QNetworkRequest request; request.setUrl(url); QNetworkReply* currentReply = m_pNetworkManager->get(request); connect(m_pNetworkManager , SIGNAL ( finished(QNetworkReply*) ), this, SLOT ( onResult(QNetworkReply*)) ); I took the connect(..) function from an example over the internet, and i can’t compile it right.. Can someone tell me what connect(..) method should I use and what is the header file it exist?? Thank you very much! Amit

Viewing all articles
Browse latest Browse all 22112

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>