[Development] How many threads created for QML Application by default ?

Thiago Macieira thiago.macieira at intel.com
Fri Aug 6 17:34:31 CEST 2021


On Friday, 6 August 2021 05:11:38 PDT Giuseppe D'Angelo via Development wrote:
> Qt may spawn additional threads internally. ~100% of the time, they're
> invisible to the developer, and used just by Qt for its own purposes. In
> other words, the code you're going to write will run in the main thread
> and you'll never know about the other threads. Just ignore their existence.

Some of those are likely MSVC Runtime threads, not started by Qt.

You can probably compare the number of threads at the start of main() and the 
point where your screenshot shows you are right now, after QGuiApplication was 
instantiated.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel DPG Cloud Engineering





More information about the Development mailing list