How to write and read without interrupts using QSerialPort
Unsolved
General and Desktop
-
@timob256 said in How to write and read without interrupts using QSerialPort:
but I couldn't read it all the time.
What does this mean?
You show code reading from/writing to serial port but say nothing about which functions you are calling/testing.
Why do you keep closing and re-opening the serial port between reads & writes? -
When working with QSerialPort in Qt, you can perform reading and writing operations without using interrupts explicitly. However, it's essential to manage the communication in a way that doesn't block the main thread, especially in a GUI application where blocking operations can freeze the user interface.