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,

CodePudding user response:

How do you paintevent painting

CodePudding user response:

The
reference 3 floor only attitude of a cat replies:
could you tell me what is your painting paintevent

To send a source well, CSDN can direct messages, I didn't find a place to send direct messages, found out I can send you, you see, or you provide a mailbox, I sent to you,

CodePudding user response:

774873171 @qq.com
This is my mailbox, add you qq. WeChat

CodePudding user response:

Thread drawing into the QImage, and then draw QImage to interface

CodePudding user response:

Hello, may I have your paintevent is how to achieve more than I have more than one data source generated curve, and joined the line width in real-time data mapping cause the program to run for a moment and then after caton very much,

CodePudding user response:

refer to 6th floor Huanyu414 response:
thread drawing into the QImage, and then draw QImage to interface

Thank you good good, the project has been finished , about a certain your way to give it a try

CodePudding user response:

refer to 7th floor cashmere_1 response:
hello, how do you paintevent implementation, I have more than one data source to generate more curves, and joined the line width in real-time data mapping cause the program to run for a moment and then after very caton,

Can give you a email or something, I send the source code to you

CodePudding user response:

3300157283 @qq.com. Thank you for the

CodePudding user response:

Hello, paintevent is how to achieve?
And add a point before I delete a point this way, no curve to beat phenomenon, but after running for a period of time will still be caton...

CodePudding user response:

Hurriedly in QCustomplot, use QChart is in QT test the bug, QCustomplot BuKa https://blog.csdn.net/qq_31073871/article/details/90260275 hundreds of thousands of points

CodePudding user response:

refer to 12 floor qq_610642 reply:
in QCustomplot, quickly use QChart is in QT test the bug, QCustomplot hundreds of thousands of points BuKa https://blog.csdn.net/qq_31073871/article/details/90260275

Thank you 666,

CodePudding user response:

The
reference 11 floor lyhrona response:
hello, paintevent is how to achieve?
And add a point before I delete a point this way, no curve to beat phenomenon, but after running for a period of time will still be caton...

You can first try to 12 floor, want to paint the source code, email to me a, I sent to you

CodePudding user response:

On the 14th floor Take_you_away
reference response:
Quote: reference 11 floor lyhrona response:

Hello, paintevent is how to achieve?
And add a point before I delete a point this way, no curve to beat phenomenon, but after running for a period of time will still be caton...

You can first try to 12 floor, want to paint the source code, email to me a, I sent to you good

Thanks! [email protected]
I learn the way to learn your first, changing qcustomplot you change...

CodePudding user response:

Send me a [email protected] I also use the qtchart qcustomplot chartdirector don't how line number too much

CodePudding user response:

Hello I now also is drawn with the existing QList data real time curve, caton interface, try to change QVector
How do you use a paintevent? Can learn from your source? 471258971 @qq.com
thanks

CodePudding user response:

Qchart, as long as you have seen its source, no one say rubbish, is one of the worst, qt source of all problems in the pie chart describes, according to a qlabel to incredibly still let ah! Estimate the profit source of official did not last, too lazy to maintenance upgrade this component, the best is the QWT and qcustomplot,

CodePudding user response:

About show log you can split screen for yourself, official has a corresponding example about dynamic display curve, you can see, example as if each 60 points, one screen at a time like a sliding window

CodePudding user response:

_ of PI PI Yuan Lin reference 16 floor response:
send me a [email protected] I also use the qtchart qcustomplot chartdirector are not too many line number

Sorry I didn't see the message, I'm sorry account went offline didn't notice, have already sent the

CodePudding user response:

refer to 17th floor qq_41945894 response:
hello I now also is drawn with the existing QList data real time curve, caton interface, try to change QVector
How do you use a paintevent? Can learn from your source? 471258971 @qq.com
Thanks

Sorry I didn't see the message, I'm sorry account went offline didn't notice, have already sent the

CodePudding user response:

The building Lord still there? QChart microcontroller running too card want to change the method,
E-mail: 1062166397 @qq.com

CodePudding user response:

The building Lord, I also want to reference, mailbox, 775374937 @qq.com
Thank you very much, already click the attention and support

CodePudding user response:

It is said that each return card can get 10 points

CodePudding user response:

The building Lord, I also want to reference, mailbox, 775374937 @qq.com
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  •  Tags:  
  • Qt
  • Related