Retrieving data from Sqlite database and plot it in chart for qt application
General and Desktop
4
Posts
3
Posters
5.5k
Views
1
Watching
-
"Qt examples":http://qt-project.org/doc/qt-5/qtexamplesandtutorials.html#examples
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. -
Hi,
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