PDA

View Full Version : Need current device i can use qstring and qvector to get this?



davinciomare
3rd October 2016, 19:55
with this i get the path of my user:
QString homePath = QDir::homePath();

But i need to take the three first letters; I was thinking to change qstring to qvector and then take the three letters. And then return in string. Someone can share with me one example.

d_stranz
3rd October 2016, 22:02
QString::left()

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