PDA

View Full Version : Qt database to store



ganeshgladish
5th January 2013, 20:29
hi i am ganesh,
i dont know how to get input from qt-quick gui to store my Qt-database and how to retrive please anyone tell me.........

alizadeh91
5th January 2013, 21:08
You can use input components like TextInput and TextEdit to get input in qml. After that you have two ways to store them in database: 1) directing from qml to database, 2) send data to Qt (Qt-Qml binding) then store them in database by Qt. I would prefer second way if have C++ classes beside qml in application

ganeshgladish
5th April 2013, 14:55
thank you alizadeh91's ,

i am getting input from my qml Textinput ,i dont know how can i store to Qt (qt-qml binding)...if u don't mind please send small example to my mail id (ganesan.bts@gmail.com) please .....please help me ....

Ichi
6th April 2013, 13:15
this is what you need http://qt-project.org/doc/qt-4.8/qtbinding.html#modifying-properties look at second example