Please remove that - no need for globally including a C header file, especially not stdio. For debugging purposes I suggest to use qDebug() & friends so you don't need printf() & friends.