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, and QT_WINDOWS_APP_PROJECT_EXECUTION_LEVEL.

© 2026 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.