This is a macro that expands to for (;;). Very useful. You're already using foreach already right?
This returns a CRC-16 checksum of a char* buffer.
- qCompress / qUncompress
These functions perform zlib compression/uncompression of a QByteArray. You can also specify the compression level.
Use this to safely compare float/double values and avoid the dreaded floating point comparison trap.
Get the runtime version of Qt being used.
Converts a QString to a const char* instead of writing QString.toLocal8Bit().constData(). Very useful - I could of done with this the other day when outputting some debug strings using...
Write to the debug window, in std::iostream style, e.g.:
qDebug() << "String contents: " << qPrintable(myString);
This is used to force an object to delete itself (delete this) when a signal occurs. I have used this to delete a QTcpSocket object automatically when the socket is disconnected.
There are lots more if you follow the link.