-3

I want as small as possible code for creating a database and a table and storing a record then displaying all in Qml cascade (BlackBerry)if possible. please please explain in layman's terms. Thank you in advance

Uzair
  • 11
  • 1
  • 2
    You haven't demonstrated any effort to research the problem or attempt to solve it yourself. – Mitch Nov 03 '15 at 09:42

1 Answers1

0

I would recommend using SQLite for database. These are very lightweight and easy to set up.

Then Qt provides a QAbstractItemModel-derived class that can turn your database into a model with the absolute minimum code, I dont recall the name but its there, google should help you.

You can expose this class to qml and use as a model for you table directly.

You can get back to me if you need help.

Teimpz
  • 945
  • 7
  • 8