[Interest] Qt5 QFileDialog Directory Only behavior different on Xp and Windows7
Duane
duane.hebert at group-upc.com
Tue Jul 15 20:46:35 CEST 2014
I'm using this :
QFileDialog fd(this,"Select folder",targetFolder);
fd.setFileMode(QFileDialog::Directory);
fd.setOption(QFileDialog::ShowDirsOnly);
if(fd.exec() == QDialog::Accepted) { ...
}
On windows7 (and linux) this works as expected. It opens with only
directories displayed and the "ok button" reads "Select Folder".
On Windows XP, the user gets what looks like a typical file dialog to
select existing files. The button says "Open" but doesn't do anything
when it's clicked.
Any ideas?
More information about the Interest
mailing list