In my program, I have a button that opens a getOpenFileName dialog like this:
path = QFileDialog::getOpenFileName(this, tr("Select region"), "%APPDATA%", tr("region file"));
I want the dialog to default to the users AppData folder. All users are running Windows (XP or higher). How could I ensure it defaults to AppData?