how to split a Qstring
-
wrote on 20 Jun 2018, 07:24 last edited by VRoninThis post is deleted!
-
wrote on 20 Jun 2018, 07:44 last edited by
As explained here you should use
QDataStream
to safely serialise your data. It looks like you are assuming thatreadAll()
reads 1 and exactly 1 "data point" but that's not the case,readAll()
reads everything that's on the serial, it could be 1, 100 or even a partial piece of data
1/2