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 should I use Qt SQL classes to support BLOBs?

How should I use Qt SQL classes to support BLOBs?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 3.8k 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.
  • J Offline
    J Offline
    Jonathan
    wrote on 28 Dec 2010, 11:08 last edited by
    #1

    I'm using SQLite and where possible using the higher level classes (QTableView, QSqlRelationalTableModel, etc) to view and update table data.

    I'd appreciate any general guidance folk can provide on how best to support BLOBs. I'd like to load the BLOB (eg image, video, audio track) from a file, display an appropriate icon in the table view, save the BLOB to the database table, and of course retrieve the BLOB from the database via the tale view.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on 28 Dec 2010, 11:38 last edited by
      #2

      According to the docs it's supported:

      "SQL Database Drivers":http://doc.qt.nokia.com/stable/sql-driver.html
      "QSqlDriver Class Reference":http://doc.qt.nokia.com/stable/qsqldriver.html
      "Data Types for Qt-supported Database Systems":http://doc.qt.nokia.com/stable/sql-types.html

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0

      1/2

      28 Dec 2010, 11:08

      • 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