Please use QSerialPort
ktechlab has (for historic reasons) its own implementation of serial port handling: the SerialPort
class (in src/electronics/port.h
). This uses the low-level ioctl
API (most likely not available on non-Unix OSes), and it has its own logic for detecting the available ports.
Starting from Qt 5.1, the Qt Serial Port is available: this encapsulates an abstraction of serial port, with proper platform-specific implementations.
It would be a good idea to switch the internal SerialPort
class to QSerialPort, or even use QSerialPort directly.