Archive for the ‘Uncategorized’ Category
By flavio
Like all Eletrical Engineer students thats frequents the laboratory class rooms, i needed to keep in my mind the color code to know the resistance of resistors. The picture below show you this code:
Then , i build a Qt application to solution my problem using the QPainter class.
The QWidget contains a method called paintEvent(QPaintEvent *event) [...]
By flavio
Introduction
In this post, I will present how build a .deb package . This is a usual implementation ,but the difference is the Qt Maemo application . Other problem that this post will to solve is how to put the Qt application at Menu of Maemo Device.
.Deb Packages In Brief:
Deb [...]
By arthurdesribeiro
To do a SOAP webservice request using QtSOAP, is simple, the two main objects that you’re going to need from QtSOAP area a QtSoapHttpTransport, that in this example it’s going to be created in the constructor and a QtSoapMessage, that you can see it use later.
In this example the SOAP client call a method called [...]
By caionobrega
Qt provides two classes for serialization, DataStream class to serialization of binary data and QTextStream to “parsing” input stream(reading and writing text). QDataStream class can be used to write portables files (i.e., a data stream written under Windows can be read by other running GNU/Linux or Solaris).
Thus, there are situations that serialization of binary data [...]
By andrerag
LibQxt adds some great functionality to the qt toolkit. One of them is a simple framework for building webservers and services. So here is a simple webservice that adds two numbers and returns the result back to who ever is sending the request.
Obs: the complete source code is available for download below.
First we create our [...]
By andre.dieb
For doing colored logging using QtDebug, you need to install a custom message handler (a sink for all qDebug(), qWarn(), qCritical(), qFatal() log messages). This can be done using the qInstallMsgHandler(handler) function, as follows. Here we also define color macros and a macro for formatting our message to “<time> <level> <message>”.
#include <QtGlobal>
#include <QTime>
#include <iostream>
#define COLOR_DEBUG [...]
By flavio
In this post I will show an basic example of a Qt application which uses QXmlStreamReader and QXmlStreamWriter objects to write and read XML files . I will also show how to change icon of QPushbutton according to its state (Unchecked or Checked).
WRITING XML:
When we selected the fields with the informations and clicked on FileMenu->SaveAs the function SaveXMLFIle() is called [...]
By andrerag
Sometimes it’s usefull to know the ip address from your local network interfaces, especially if you are using mobile or embedded devices, it’s sometimes difficult now and then to get this information going through the settings menu, (i’ve personally struggled to get the ip address off a 5800 xpress music phone), so here is how [...]
By andrerag
When compiling software using Qt for s60 or OpenC++, you can come across some problems. One of the very first problems is when you code on some other OS(linux for example) and port your code to windows for compiling and testing on the device. If most of the problems have something to do with the [...]
By flavio
In this post, I will present all steps To Developing a first Qt/C++ applications for S60 mobile phones . I recorded a full video of all necessary softwares installation that allow the development of mobile phone applications.
Necessary Softwares :
Nokia Pc Suite ->Is a software package used to establish an interface between Nokia mobile [...]