QT_WINDOWS_APP_SEGMENT_HEAP
Opts the application into the Windows Segment Heap via the generated application manifest.
This property was introduced in Qt 6.13.
Note: This property is used only if targeting Windows.
Boolean property that opts the application into the Segment Heap. When enabled, Qt adds a heapType element with the value SegmentHeap to the application manifest that it automatically generates for Windows executables built with qt_add_executable().
The Segment Heap is a modern heap implementation that can lower a process's memory footprint and improve allocation performance, most notably for allocation-heavy and multi-threaded workloads. The impact is workload dependent and can be neutral or negative for some applications, so measure your application before enabling it in a release.
The property is disabled by default. Set it to ON to opt in:
set_target_properties(myapp PROPERTIES
QT_WINDOWS_APP_SEGMENT_HEAP ON
)
If the target already provides a .manifest file in its sources, Qt skips automatic manifest generation and this property has no effect.
See also Qt for Windows - Deployment, QT_WINDOWS_APP_PROJECT_IDENTIFIER, QT_WINDOWS_APP_PROJECT_EXECUTION_LEVEL, and Setting CMake variables and properties.