change a printf to a qDebug

and removing an unneeded \n