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. [solved] How does one use a model in C++ with the Qt Quick view?
Forum Updated to NodeBB v4.3 + New Features

[solved] How does one use a model in C++ with the Qt Quick view?

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 2.3k Views 1 Watching
  • 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.
  • J Offline
    J Offline
    johnk
    wrote on last edited by
    #1

    Hello,

    I have a Qt app. I want to move the UI to Qt Quick. My code uses "QAbstractItemModel":http://doc.qt.nokia.com/latest/qabstractitemmodel.html. I want to reuse the models. Is there an example which shows how to use a model in C++ with the Qt Quick view?

    -jk

    1 Reply Last reply
    0
    • D Offline
      D Offline
      DenisKormalev
      wrote on last edited by
      #2

      You can find it "here":http://doc.qt.nokia.com/4.7/qdeclarativemodels.html#c-data-models

      1 Reply Last reply
      0
      • J Offline
        J Offline
        johnk
        wrote on last edited by
        #3

        Hello Denis,

        Just what I was looking for and wanted to hear.

        Thanks,
        John

        1 Reply Last reply
        0
        • D Offline
          D Offline
          DenisKormalev
          wrote on last edited by
          #4

          Don't forget to mark your thread as solved

          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