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. How to show sqlite db data as multi columns in QTableView Qt C++?
Forum Updated to NodeBB v4.3 + New Features

How to show sqlite db data as multi columns in QTableView Qt C++?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 335 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.
  • Binary SoftB Offline
    Binary SoftB Offline
    Binary Soft
    wrote on last edited by
    #1

    Model/View of Qt C++

    I've a sqlite db with large data. All data is store as one column in db.

    Now I want to show data as table (eg. 7 columns and many rows that from db).

    How can I show data in QTableView? (please see picture)

    0_1544457647949_table.png

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Implement a proxy model that will handle converting the data of your single column database into as many column you need.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      Binary SoftB 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        Implement a proxy model that will handle converting the data of your single column database into as many column you need.

        Binary SoftB Offline
        Binary SoftB Offline
        Binary Soft
        wrote on last edited by
        #3

        @SGaist Thanks

        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