How to create dynamic ListModels from C++
-
I have to create some message models (ListModels that keeps message infomation) at begining of the my app. I can define it. However i need to create more models at run time dynamically (on demand) and i have to bind them to some views which are dynamically created. How can i do it ? Which approach is suitable for me?
-
Maybe this could be of help: http://qt-project.org/wiki/How_to_use_a_QSqlQueryModel_in_QML