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?



  • 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
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.