Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Not able to send strings.
VinQtUser last edited by
I'm using Qt (Windows platform) C++ "terminal program" to serially communicate with a micro-controller. I'm able to send only one character at a time as I've used keyPressEvent. Now, I want to send a string such that I get the response only after pressing the return(Enter key). Please help me with this.
Your question was already answered here: http://forum.qt.io/topic/63019/not-able-to-read-data-from-qserialport
std::cin >> s; // Enter the string, press Enter when finished
QByteArray array (s.c_str());