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. How to create dynamic ListModels from C++
Forum Update on Monday, May 27th 2025

How to create dynamic ListModels from C++

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 749 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
    muzo
    wrote on 28 Jun 2013, 05:50 last edited by
    #1

    I have to create some message models (ListModels that keeps message infomation) at begining of the my app. I can define it. However i need to create more models at run time dynamically (on demand) and i have to bind them to some views which are dynamically created. How can i do it ? Which approach is suitable for me?

    1 Reply Last reply
    0
    • G Offline
      G Offline
      Gennon
      wrote on 28 Jun 2013, 10:11 last edited by
      #2

      Maybe this could be of help: http://qt-project.org/wiki/How_to_use_a_QSqlQueryModel_in_QML

      /Gen

      1 Reply Last reply
      0

      1/2

      28 Jun 2013, 05:50

      • Login

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