[Qt-interest] QCompleter with QDirModel on OS X can not reach External Disk Drives?
Mike Jackson
imikejackson at gmail.com
Fri Aug 21 16:25:05 CEST 2009
I have the following bit of code:
QCompleter *completer = new QCompleter(this);
QDirModel* model = new QDirModel(completer);
QStringList nameFilters;
nameFilters << "*.mxa" << "*.h5" << "*.hdf5";
model->setNameFilters(nameFilters);
model->setFilter(QDir::AllDirs | QDir::Drives | QDir::NoDotAndDotDot |
QDir::System);
completer->setModel(model);
mxaFile->setCompleter(completer);
// mxaFile is a QLineEdit
The problem is that none of my External disk drives are listed. They
are mounted in /Volumes on OS X. The /Volumes isn't even listed as a
possible completion either.
Is there a way to have QDirModel list the all the mounted Disk Drives on OS X?
Thanks
_________________________________________________________
Mike Jackson mike.jackson at bluequartz.net
BlueQuartz Software www.bluequartz.net
Principal Software Engineer Dayton, Ohio
More information about the Qt-interest-old
mailing list