integrating with QAbstractListModel
Unsolved
QML and Qt Quick
-
in my project i have a DBlayer class for connecting to database and reading/writing data,i have mylist class which inherits from QAbstractListModel ,i have signal and slot in DBlayer class that i want to connect them to mylist class, the problem is when i register mylist class to Qml like below :
qmlRegisterType<mylist>("Mylist",1,0,"mylist");
i have no instance of mylist class to connect it's signal and slot to DBlayer class.
what is the best way to do this? is there another way to show my data in Qml ListView?