Posts Tagged ‘ qt4 ’
I work with java every day, using kde kate editor http://kate-editor.org/, and i was wondering how nice it would be with a java autocompletation plugin. So i started looking for a c++ library that could get information from a java class, with no results . The only possibility that i could find was JNI. Use [ READ MORE ]
It’s very easy to call a rest service from qt, even with authentication, using QtNetwork/QNetworkAccessManager class http://doc.trolltech.com/4.5/qnetworkaccessmanager.html. Using the previous rest servlet sample. QNetworkAccessManager *manager = new QNetworkAccessManager(this); QObject::connect(manager, SIGNAL(finished(QNetworkReply *)), SLOT(slotRequestFinished(QNetworkReply *))); QNetworkRequest request; request.setUrl(QUrl("http://localhost:8080/restservlet/sample/tommy")); request.setRawHeader("Authorization", "Basic " + QByteArray(QString("%1:%2").arg("user").arg("asas").toAscii()).toBase64()); request.setHeader(QNetworkRequest::ContentTypeHeader, "text/xml"); QNetworkReply *reply = 0; reply = manager->get(request); QObject::connect(reply, SIGNAL(downloadProgress(qint64,qint64)), SLOT(slotProgress(qint64,qint64)))[ READ MORE ]
Get every new post delivered to your Inbox.