Reputation: 1332
I am using QFileDialog::getOpenFileName to open file dialog which give me the path of selected file.
Strange Behavior
This is working on
Not Working on
my code is
QString qResult = QFileDialog::getOpenFileName(parent, qCaption, qDefaultPath, qFilter, &qSelectedFilter);
i checked for
QDir(qDefaultPath).exists()
can anyone give me idea ? why is it happening ? or any alternative ? please help this regards
Qt Version is 4.8.5
Upvotes: 0
Views: 454
Reputation: 22588
Does updating your Qt version a possible solution ? The most recent revision in 4.8 branch is 4.8.7. The release note for that version says:
Better support for running Qt 4.8 applications on Mac OS X 10.10 Yosemite
and the release note for 4.8.6 says
Better support for Mac OS X 10.9 Mavericks
so there is a good chance your issue is fixed with the latest revision.
Upvotes: 2