How to write and read without interrupts using QSerialPort
Unsolved
General and Desktop
-
wrote on 26 Nov 2022, 14:02 last edited byThis post is deleted!
-
wrote on 26 Nov 2022, 14:11 last edited by
@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? -
wrote on 23 Dec 2023, 07:25 last edited by
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.