QString::left()
QDir::homePath() has nothing to do with "devices", especially not a "current device".