I don't have TARGET nor TEMPLATE in my .pro but appart from that you are right.

In my code, I only create a qwt object.
When I start the program, I have "realloc(): invalid pointer" followed by the backtrace and the memory map.