Because it has no access to this code.
The "microsoft stuff" calls the runtime to do the job and from what I see it is specific to the .NET runtime (I might be wrong, I just had a brief look at the docs), so no real C here. It will work only when using MSVC and only in the .NET versions, so it can hardly be called portable. Qt has no access to the kernel space nor to the heap code generated by the compiler. It works strictly on the C++ layer (with exception to assembly code occuring from time to time in low-level routines). Its work ends when the compiler's work begins.Check this microsoft stuff:
So if you use MSVC.NET, call _CrtDumpMemoryLeaks() when writing Qt code. Qt will not interfere but it has nothing to help you with - you can use any features the compiler allows you to, but don't ask every possible thing to be available in Qt - it is strictly a set of C++ libraries. People tend to forget (or ignore) that which is why my response was so harsh. Besides, I had a bad day so sorry if you felt offended, I didn't mean that.
So to repeat again - Qt is not a programming language, it has no runtime, no bytecode, no intermediate execution, it doesn't extend C nor C++ language with any new features and it also doesn't limit the use of other C/C++ libraries and code and it doesn't influence alien code in any way. It is "just" a set of self-contained C++ libraries that provide you a portable API that uses and generates a standard C++ code. And it does its job (and its job only) quite well.
Bookmarks