The serial port read in your case probably happens in a separate thread.. You need to make sure read and write happens in the same thread in which you open the port. Hope that helps..
Regards
Vikram
But how to do it?
I think that my program use only one thread.
Added after 15 minutes:
Originally Posted by anda_skoa
My guess is that the problem is your missing Q(Core/Ui)Application instance.
So the main thread is not "adopted" as a QThread and thus lacks the necessary event dispatcher for socketnotifier's event handling.
Cheers,
_
Make a widgets project?
Last edited by nistar; 18th November 2015 at 14:54.
Bookmarks