[Qt-interest] Using true database cursors with Qt

John Moran johnfrederickmoran at gmail.com
Thu Nov 26 12:33:06 CET 2009


Hello,

I'm working on an application where I read an SQL query that returns
binary strings (that are actually images, ultimately converted to
QIcon) , which I use to populate a QStandardItemModel. I'm using
PostgreSQL 8.3 as my database, and Qt 4.5. The Qt docs don't make it
clear if Qt has a cursor API, through which we can use native database
cursors and solve the problem of "impedance mismatch", which is likely
to be acute if my user has lots of images - the interface will freeze
for a disconcerting few seconds.

Should I just use SQL to use cursors? Most database APIs I've used
support native cursors directly, so this is a notable omission.

Regards,
John Moran



More information about the Qt-interest-old mailing list