Home > Back-end >  Qt continue to read the serial port 8 channel data and in 8, according to the label only a label
Qt continue to read the serial port 8 channel data and in 8, according to the label only a label

Time:04-02

a machine through a serial port, in turn, sends a newline after 8 channel data, cycle,
I use readLline read data after the data is divided into eight, and into the respective channel, debugging is very normal, each channel can be successfully extracted data, but not when the program runs, all data in the channel, according to the label number of other channels, like a buffer forever is only a number,
When I drag a window to rest for a while after the release, according to data operation is normal, eight channels can show the right, but to go back to the previous lasts for a few seconds later, strives for the bosses and see what's the problem?


CodePudding user response:

Feeling problem in this paragraph: the if () in front of the judge, in the list. The size () & gt;=8, the subscript should be 0 to 7, the final UI - & gt; Channel8 - & gt; InsertPlainText ([7]) (list)? If these conditions are not satisfied, so the only channel, according to a
  • Related