How to make graphs / graphs (e.g. line graphs, bar graphs, pie charts), etc. In C ++, Qt, QML, Blackberry 10 Cascades Beta 3 SDK?

I need to know how to create charts / graphs in the Blackberry 10 Cascades Beta 3 SDK, QML, Qt, C ++. If anyone can show me an example or point me to something that shows me how to do this, it would be very grateful.

+4
source share
7 answers

One way to create im Qt and QML graphs is to add Webview and use the html library to display the graphs. I used flot and found it flexible enough.

+1
source

Here is a simple QML wrapper for QCustomPlot: https://github.com/ncp1402/ql-lineplot

+1
source

This is an old question, but it was worth the wait.

There is currently Qt 5.7.0 released . Other new features include:

  • Qt Charts . Earlier, the commercial Qt Charts module is now included in Qt under the GPLv3 license for open source users.

QtCharts. Pic to get attention

  • Data visualization Qt . Earlier, the commercial Qt Data Visualization module is now included in Qt under the GPLv3 license for open source users.

Qt data visualization. Pic to get attention

If anyone is interested, here is a good place to start:

+1
source

As already suggested, use the WebView object to host your chart library, you will find more libraries to use with them than originally.

From personal experience, I can say that http://www.highcharts.com/ works great with Playbook OS and Blackberry 10 operating system

0
source

I am also looking for a solution.

If this is a simple plot, perhaps you can create an ImagePaint with ImagePaintData. Here's a very simple example: https://developer.blackberry.com/cascades/reference/bb_cascades_imagepaint.html

You can also display a chart and select it as Png, for example; Then you can display this as an image in QML as well;

Another option is to use an external window, as described here: https://developer.blackberry.com/cascades/files/webinars/cascades_opengl_webcast.pdf

you can use opengl to render graphics or try to compile a chart library

Well-web browser controll looks like the easiest solution, and I want me to try it.

I have tried this. Not every Charts library runs on the bb10 simulator. For the ordinary fleet, which was mentioned earlier, it does not work. but some libraries work. e.g. highCharts and http://elycharts.com/

0
source

If you need something in C ++ using QT, you can take a look at QWT http://qwt.sourceforge.net/index.html

0
source

Source: https://habr.com/ru/post/1441915/


All Articles