Can you switch those cout to qDebug