Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Using Qt's Model/View pattern on custom UIs

    QML and Qt Quick
    model-view
    2
    3
    324
    Loading More Posts
    • 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.
    • overlord
      overlord last edited by

      I want to use Qt's Model/View pattern on my custom qt quick based UIs but I couldn't find any way how implement it.

      As I understand it, QAbstractItemModel designed for models that based on list, table, tree etc. But my UI will show data which change instantaneously (i.e. instant gps data).For instance,I will show last gps info coming from GPS module on map and table.

      What way should I follow in this scenario? Should I implement my design according to QAbstractItemModel or custom 'Model View Controller' pattern without QAbstractItemModel, DelegateModel etc.?

      1 Reply Last reply Reply Quote 0
      • Y
        Yaswanth last edited by

        As you want to display GPS info in the table and you did not mention the size of the data, I assume you might get multiple rows in table. So I suggest to create QAbstractItemModel , Tableview and delegate. You can use same model to display in map.

        1 Reply Last reply Reply Quote 0
        • overlord
          overlord last edited by

          I will show one datasets at the same time. This data periodically updated. So I haven't any list.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post