Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Reading Database table from Qt and diplay in a table of QML
Forum Updated to NodeBB v4.3 + New Features

Reading Database table from Qt and diplay in a table of QML

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.0k 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.
  • K Offline
    K Offline
    KushalAusula
    wrote on last edited by
    #1

    Hi,
    Is there any way to read DB table data(postegresql or sqlite) from QT and send data to QML so that I could display the data in the DBGrid(Table of QML)????

    Even If there are any links that could help, Please let me know.

    Thanq.

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      Hi,

      If you are using SQLite then you can access it directly from QML too. Check "qtquick-localstorage":http://qt-project.org/doc/qt-5/qtquick-localstorage-qmlmodule.html
      And if Postgres then you will have to coonect db from c++ and expose your related functions to QML.
      Check "qtqml-cppintegration":http://qt-project.org/doc/qt-5/qtqml-cppintegration-topic.html

      157

      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