how to split a Qstring
-
This post is deleted!
-
As explained here you should use
QDataStreamto 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