thank you for your reply,
please give tell example program or sites sir ...
thank you for your reply,
please give tell example program or sites sir ...
First of all you can write your own c++ class from QObject. Do your work with database in this class. Then for using this class in qml you have to register it:
then in your qml, just import your custom type and use it.Qt Code:
qmlRegisterType<MyObject>("QtQuick", 1, 0, "MyObject");To copy to clipboard, switch view to plain text mode
see this: http://qt-project.org/doc/qt-5.0/qtq...roperties.html for embedding qobject in qml in Qt5
Bookmarks