QString::fromStdString(GetDataDir().string()) seems safer.