Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QSerialPort and non-canonical mode on Linux



  • Hello.

    I need to set my QSerialPort in non-canonical (raw) mode. When I work with native API I use open() function, and struct termios with cfmakeraw() for changing mode. How can I do it for QSerialPort. Maybe I have to get file descriptor (like open() result)? Or is there another way?


  • Qt Champions 2020

    You can use QSerialPort::handle() and do what you want.

    Btw: QSerialPort always opens in RAW mode by default.



  • bq. Btw: QSerialPort always opens in RAW mode by default.

    I have found it (((. Thank you kuzulis for your reply.


Log in to reply