Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to implement Qt Remote Objects with C++ TableModel
Forum Updated to NodeBB v4.3 + New Features

How to implement Qt Remote Objects with C++ TableModel

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 200 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    SRRoger
    wrote on last edited by SRRoger
    #1

    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 ?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved