I tried the following to open a file dialog that should display the users home directory:
QString fileName = QFileDialog::getOpenFileName(this,
tr("Select database"), QDir::homePath(),
tr("Database Files (*.db *.sqlite)"));
The problem ist that QFileDialog always starts with the directory from where the application was started. Any ideas what I'm doing wrong ?
BTW: I'm using Qt 5 on Mac OS X.