#include <Windows.h>
AllocConsole () added to the main function
freopen ( "CONOUT $", "w", stdout); added to the main function
After printf ( "fdsafds") printf all the content will be output to the console window,
#define qDebug printf or by renaming, you can debug all the information from the console output