change default_dir to a QDir