Archive for November, 2008

Nov

29

How to get data from a WebServer using QT

By flavio

In this example, I got the currency rates from a WebServer using QtNetwork module. Such rates are used to convert from Dollar or Euro to Real (Brazilian currency)  using the latest currency quotes.
First, you have to create a QNetworkAccessManager to manage the network requests and receive the network replies.
Cambio::Cambio(QWidget *parent) :
QWidget(parent)
{
[...]

Nov

26

How to exchange data between JavaScript and QT using QWebView

By flavio

By using the QWebView, you can embedded any HTML code on your desktop application. The cool thing is: you can interact with the HTML code loaded inside your QWebView. For example: the QWebView allows you to execute some JavaScript code inside the HTML through the evaluateJavaScritpt method. Moreover, you can get the result of your [...]