Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Using Qt's Model/View pattern on custom UIs
QtWS25 Last Chance

Using Qt's Model/View pattern on custom UIs

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
model-view
3 Posts 2 Posters 553 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.
  • overlordO Offline
    overlordO Offline
    overlord
    wrote on last edited by
    #1

    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
    0
    • Y Offline
      Y Offline
      Yaswanth
      wrote on last edited by
      #2

      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
      0
      • overlordO Offline
        overlordO Offline
        overlord
        wrote on last edited by
        #3

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

        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