Retrieving data from Sqlite database and plot it in chart for qt application
Is there any existing example that requires data to be retrieved from Sqlite database and plot it in pie or bar charts?
Based on the one field from the database how to draw the charts in qt? Any help .....
Also there are links to all examples in QtCreator.
If you downloaded Qt from this site then open QtCReator and select "Examples" button on a "Welcome" page.
You can search there by sql or by charts.
i saw the examples.but i want data to be retrieved from sqlite database and plot it in pie or bar charts.
You would need to do that in three steps.
get the data from your database
build the plot data from it (loop on the QSqlQuery result)
refresh the plot
For the plotting part, you might be interested by "Qwt":http://qwt.sourceforge.net
Hope it helps