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 to show data from database in QML listview?
Forum Updated to NodeBB v4.3 + New Features

[solved] How to show data from database in QML listview?

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 3 Posters 3.7k 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.
  • T Offline
    T Offline
    TobbY
    wrote on last edited by
    #1

    i am working on showing data from database to QML listview , please provide any help. thank you

    1 Reply Last reply
    0
    • T Offline
      T Offline
      TobbY
      wrote on last edited by
      #2

      solved: i figure it out myself :)

      1 Reply Last reply
      0
      • kidproquoK Offline
        kidproquoK Offline
        kidproquo
        wrote on last edited by
        #3

        If you solve something by yourself please provide an explanation of how you did it or a link to a relevant resource you found.

        There is nothing more frustrating when searching for a problem only to find a "solved it myself" type post with no details of how the problem was solved.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          srikanth_trulyit
          wrote on last edited by
          #4

          Export your data with a QAbstractListItem interface. It helps to better model your data according to rows and assign roles for fields.
          http://doc.qt.nokia.com/4.7-snapshot/qdeclarativemodels.html#qabstractitemmodel

          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