PDA

View Full Version : very basic Qt/c++ question



Maluko_Da_Tola
25th July 2010, 12:56
Hi,

Ive seen some codes with variables of the type 'qreal' and 'qint'. However, these words do not appear as key words, and therefore cannot be types. What are they?

An example:
qint64 writeData(const char *data, qint64 len);


Cheers

Zlatomir
25th July 2010, 13:00
qreal is a typedef for double (or float on ARM)
qint is typedef for integer type
link to doc (http://doc.trolltech.com/4.2/qtglobal.html)

wysota
25th July 2010, 14:02
qreal is a typedef for float
It's a typedef for double on all architectures but ARM :)