change printf to qDebug