Home > Mobile > Qt real-time loading large amounts of data & amp; & The problem of dynamic curve drawing qchart
Qt real-time loading large amounts of data & amp; & The problem of dynamic curve drawing qchart
Time:11-30
1, made a similar qt adb tool: connect mobile phone, and then grab the phone log, and shows to the interface, the problem now is that the log refresh when more and more, the interface will be more and more CARDS (tried QTextEdit, QPlainTextEdit QTextBrowser, QPlainTextEdit will be better, not so quick card interface, but the data brush too much, or get stuck!), solution, which the great spirit to guide it,
2, with dynamic curve drawing qchart, every 200 milliseconds append a point, that is dynamic, but there is a problem, is to append more, such as running for 1 hours, I'll have the series of 18000 data, this time, the curve of the refresh will get a hot meal, is not very smooth, change the idea, when I series of more than 50 points, with each new add a point, just delete the first point, now even run for an hour, two hours can't caton curve, but new problems come, once I delete nodes, namely from 51 points, my curve will flap (can you imagine, is curve at the time of back and forth motion, is still floating up and down, like a wave, a wave a wave, is really very funny, when I was testing effect, almost laughed out loud), that, what is the row, anyone know?
CodePudding user response:
Qchart can see my posts have demo, the measured not you this problem!
CodePudding user response:
Thank you thank you, see, have tried to replace, or not, free according to your ways to redesign the try my code logic, this problem has been solved now, I changed a way to use paintevent to his painting, though a bit go looking for trouble, but the effect is very good,