How to implement Qt Remote Objects with C++ TableModel
-
Hello,
I'm trying to learn how to use Qt Remote Objects. (Qt5.15)
I have a local application and I'm trying to share some information of it in an other computer.I'm trying to share a TableModel using the Qt Remote Objects. However I do not understand, if it is possible to do this easily.
I've followed the documentation to make the basic examples with repc, I have managed to create simple classes that share simple information as a QString representing a user name (through an ssl socket). And It worked :).
Now I am trying to share a tablemodel that represent a list of meeting scheduled "MeetingsModel" (with a lot of information, people concerned with name etc). The model used in my application is an implementation of a QAbstractTableModel, it is populated with a database.
In my local application, I display this list, using a WorlistModelProxy (QSortFilterProxyModel) , and I would like to display the same list on a Replica.What is the best way to do it ? I do not understand how to share a table model.
I saw that in REPFILE, it is possible to set a MODEL element, but I do not think the thing to use, and I did not find an example or an application using it.Is there is a simple way to share it ?
Should I create a new class "source", that mirror the data inside my "MeetingsModel" ?
If someone have some experience with ListModel or some examples of uses to share, I would be happy to have some advices ?