Qt Core Examples
To learn how to use features of the Qt Core module, see examples:
Demonstrates how the usage of bindable properties can simplify your C++ code. | |
QCalendar example illustrating user-supplied custom calendars. | |
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. | |
Demonstrates how to share image data between different processes using the Shared Memory IPC mechanism. | |
Demonstrates using QLocalSocket for a simple local service client. | |
Demonstrates using QLocalServer and QLocalSocket for serving a simple local service. | |
Shows the hierarchy of MIME types and can be used to determine the MIME type of a file. | |
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. | |
A demonstration of how to parse files in CBOR format. | |
The Producer and Consumer using Semaphores example shows how to use QSemaphore to control access to a circular buffer shared by a producer thread and a consumer thread. | |
The Producer and Consumer using Wait Conditions example shows how to use QWaitCondition and QMutex to control access to a circular buffer shared by a producer thread and a consumer thread. | |
Demonstrates how to read and write XBEL files. | |
Demonstrates calling Java code from Qt in an Android application. | |
The Queued Custom Type example shows how to send custom types between threads with queued signals and slots. | |
How to save and load a game using Qt's JSON or CBOR classes. | |
How to convert between different serialization formats. |
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.