Use QLocalSocket and optionally QSocketNotifier.
Use QLocalSocket and optionally QSocketNotifier.
Tomasz (7th November 2010)
How about:
Qt Code:
int fd = open("/dev/ttySAC0", O_RDONLY|O_NONBLOCK); connect(socNotify, SIGNAL(activated(int)), this, SLOT(your_read_function(int)));To copy to clipboard, switch view to plain text mode
Tomasz (8th November 2010)
/dev/ttySAC0 is not a file, it's a stream you can connect to using QLocalSocket. Or you can use QSocketNotifier with native stream handling (see the example squidge gave you).
Tomasz (8th November 2010)
Bookmarks