Best way to draw graph axes in QML
-
I want to draw a graph using QML and was wondering what is the best way to tackle the axes ticks (eg. 100, 200, 300) without the code looking too messy.
It has to be aligned properly and capable of scaling to different sets of numbers with ease (like changing one var).What's the best Type to use?
Thanks
-
the only way to draw in QML is using rectangles
-
Best way is to write your own diagram items I guess.
-
[quote author="Tobias Hunger" date="1295949292"]Best way is to write your own diagram items I guess.[/quote]
you're right. sorry, I meant doing it without any C++.
-
I think you should wait for canvas element: http://bugreports.qt.nokia.com/browse/QTCOMPONENTS-143
-
Without C++ this is going to be much slower. Make sure the UI is still fast enough on the slowest platform you are targeting.