Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
4.7.4
-
None
-
I'm running XUbuntu 11.10:
luke@ThinkPad-W510:/$ uname -a
Linux ThinkPad-W510 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:56:25 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
Description
I'm working on a Linux desktop application that needs to open a USB serial port, typically /dev/ttyUSB0 or /dev/ttyUSB1. I'm using QFileDialog to let the user select the file:
QFileDialog dialog(this);
dialog.setFileMode(QFileDialog::AnyFile);
dialog.setFilter(QDir::System | QDir::AllEntries | QDir::Hidden);
dialog.setViewMode(QFileDialog::Detail);
QStringList fileNames;
if (dialog.exec())
fileNames = dialog.selectedFiles();
When I direct the FileDialog to /dev, none of the files that I can see by typing "ls /dev -al" are there. The directories show up, but for example, this file doesn't:
luke@ThinkPad-W510:/$ ls /dev/ttyUSB0 -al
crw-rw---- 1 root dialout 188, 0 2011-10-11 10:14 /dev/ttyUSB0
My user is a member of the dialout group:
luke@ThinkPad-W510:/$ groups
luke adm dialout cdrom audio video plugdev users fuse netdev bluetooth lpadmin admin sambashare
I've tried adding QDir::Readable and QDir::Writable and the above file still doesn't show up.
Attachments
Issue Links
- relates to
-
QTBUG-20968 QFileSystemModel does not list device (block/char) files
- Closed