PDA

View Full Version : databese connectitvity



Yogesh soni
14th September 2015, 05:59
hello everyone
I am new to qt.
I am developing an android app using qt plz tell me how to connect sqlite database using qt quick(qml).

anda_skoa
14th September 2015, 08:28
On the C++ side of your application you create a model that exports the database data to QML.

For example wrapping a QSqlQueryModel in a list model implementation which maps roles to columns, or deriving from one of the QSql models and mapping towards the base class.

Cheers,
_