The Contiguous Cache example shows how to use QContiguousCache to manage memory usage for very large models. In some environments memory is limited and, even when it isn't, users still dislike an application using excessive memory. Using QContiguousCache to manage a list, rather than loading the entire list into memory, allows the application to limit the amount of memory it uses, regardless of the size of the data set it accesses.
core,ios
corelib/tools/contiguouscache/main.cpp
The Custom Type example shows how to integrate a custom type into Qt's meta-object system.
core
corelib/tools/customtype/main.cpp
The JSON Save Game example demonstrates how to save and load a small game using QJsonDocument, QJsonObject and QJsonArray.
core
corelib/serialization/savegame/main.cpp
Demonstrates using QLocalSocket for a simple local service client.
core
corelib/ipc/localfortuneclient/main.cpp
Demonstrates using QLocalServer and QLocalSocket for serving a simple local service.
core
corelib/ipc/localfortuneserver/main.cpp
Shows the hierarchy of MIME types and can be used to determine the MIME type of a file.
core
corelib/mimetypes/mimetypebrowser/main.cpp
The Mandelbrot example demonstrates multi-thread programming using Qt. It shows how to use a worker thread to perform heavy computations without blocking the main thread's event loop.
core,ios
corelib/threads/mandelbrot/main.cpp
Demonstrates multi-thread programming using Qt.
core,ios
corelib/threads/queuedcustomtype/main.cpp
Demonstrates multi-thread programming using Qt.
core
corelib/threads/semaphores/semaphores.cpp
Demonstrates doing inter-process communication using shared memory with the QSharedMemory class.
core
corelib/ipc/sharedmemory/main.cpp
Demonstrates multi-thread programming using Qt.
core
corelib/threads/waitconditions/waitconditions.cpp