December 28, 2010

Jonathan Jonathan
Lab Rat
50 posts

How should I use Qt SQL classes to support BLOBs?

 

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

December 28, 2010

Volker Volker
Robot Herder
5428 posts

According to the docs it’s supported:

SQL Database Drivers [doc.qt.nokia.com]
QSqlDriver Class Reference [doc.qt.nokia.com]
Data Types for Qt-supported Database Systems [doc.qt.nokia.com]

 
  ‹‹ [SOLVED] QTableWidgetItem cant read text      How to modificate size of QPlainTextEdit ››

You must log in to post a reply. Not a member yet? Register here!