Handling warnings with QDebug instead of COUT