[Qt-interest] QFileDialog and UNIX device nodes
Konrad Rosenbaum
konrad at silmor.de
Thu Jul 22 09:07:08 CEST 2010
On Wednesday 21 July 2010, Jeffery MacEachern wrote:
> As part of the connection
> process, the user is presented with a QFIleDialog to select the serial
> port that the device is connected to. We are currently using a filter
> of "*". Is there a smarter way to do this on Linux/UNIX/OS X?
On most Unixes serial devices will match tty*.
On Linux for example ttyS* are the normal serial ports, ttyACM* are USB
attached serial devices (eg. UMTS modems).
So if you want to stick with QFileDialog use tty* as filter (I haven't
tested whether that is even possible) and allow the user to use * instead.
Otherwise you'll have to implement your own dialog.
Konrad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100722/4704c2c9/attachment.bin
More information about the Qt-interest-old
mailing list