[solved] xy data plot in QML
-
Thanks for the replies....
To geronik I would say:
Google charts is NOT an answer. It was not even the question.To me, the lack of a graph widget is a big glaring hole in QML functionality, especially when you see all the very cool widgets that do exist.
If as minimoog77 suggests it is easy, then why isn't there even ONE that is part of the standard qt set of cool widgets?
-
I sad that integration with code that already uses QPainter is easy, not that plotting graph is easy to do. :)
I don't have experience with QWT, but you could use or look their code how they are painting xy graph. Inherit QDeclarativeItem, do your own painting, and that's it.
Qt was and is providing more or less standard widgets, it's not plotting library.
-
Check QML Canvas: http://qt.gitorious.org/qt-labs/qmlcanvas
-
Diph,
This looks very interesting. I looked at the examples there and there is a plotting example. Do not see any documentation, but it seems like one possible path forward.
Thanks! -
To get another idea you could look at this "example":http://www.developer.nokia.com/Community/Wiki/CS001627_-_Creating_a_custom_QML_element_with_Qt of drawing a line and expand on the concept.
-
Just wanted to say thanks to mlong for posting that line example. I will be using that one.
-
No problem! I've used it before, as well, for similar functions :)
Be sure and rename the thread to add [Solved] if your question has been answered sufficiently. Thanks!
-
This thread seems ended. I guess I should mark it "solved", though there is plenty of interpretation and code to write.
Not sure how to mark this "solved". Can someone explain?
Thanks! -
Edit your initial post and change the title, adding [Solved] at the beginning.
-
Could somebody post a code which might be of some help to beginners like me.. THank you.