cout to qDebug()
Removed iostream
Splitting with Qt