QDir::setCurrent
is a static function that sets the current path of the application. It doesn't modifiy any QDir
instance.
You should use QDir::setPath
to assign a new path (or assign the QString
directly to QDir
with the =
operator, since the conversion is implicit).