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. What's the difference between QML ListModel and C++ QAbstractListModel?
Forum Updated to NodeBB v4.3 + New Features

What's the difference between QML ListModel and C++ QAbstractListModel?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 2 Posters 283 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.
  • M Offline
    M Offline
    mirro
    wrote on last edited by
    #1
    1 Reply Last reply
    0
    • GrecKoG Offline
      GrecKoG Offline
      GrecKo
      Qt Champions 2018
      wrote on last edited by
      #2

      ListModel is an implementation of a QAbstracListModel.
      It can be populated from QML.

      If you want to have more control over the data or behavior or your model, subclass QAbstractListModel yourself and reimplement the functions you are interested in (usually rowCount, data, roleNames)

      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