Reading Database table from Qt and diplay in a table of QML
-
Hi,
Is there any way to read DB table data(postegresql or sqlite) from QT and send data to QML so that I could display the data in the DBGrid(Table of QML)????Even If there are any links that could help, Please let me know.
Thanq.
-
Hi,
If you are using SQLite then you can access it directly from QML too. Check "qtquick-localstorage":http://qt-project.org/doc/qt-5/qtquick-localstorage-qmlmodule.html
And if Postgres then you will have to coonect db from c++ and expose your related functions to QML.
Check "qtqml-cppintegration":http://qt-project.org/doc/qt-5/qtqml-cppintegration-topic.html