In Qt how the implementation of graphs i.e plotting of graphs is supported?
Do we have any Qt classes or libraries for it as there are for other features ?
The graph here to be drawn is a linear graph drawn between Current and voltage.
In Qt how the implementation of graphs i.e plotting of graphs is supported? Do
Share
As extensive as Qt is and as many areas as it’s trying to cover, you have to realize that Qt is not a one stop shop for your GUI projects. With that said, the answer to your question is simply “Yes”. Sure that’s possible. But not as native functionality within Qt. (Unless someone would prove me wrong here. I’m unaware of such functionality) Qt provides all the crayons you could ever wish for, but does not always do the drawing for you.
Luckily however, there are those who have developed various add-on libraries using Qt as a base. For example there is Qwt. As they say themselves: “The Qwt library contains GUI Components and utility classes which are primarily useful for programs with a technical background.”
They provide a number of widgets for plots with all kinds of line styles to fit certain data sets. I’m sure that either you’ll be able to find something which fits your needs in there. Or if not, you can extend its functionality to fit your needs.
P.s.: I am assuming here that you wish to plot your data in the end. If this is not the case, this might be overkill.