Hello,
Thanks for taking the time to checking my post, I am facing a bit of an issue and would like some pointers.
I have a QSqlQuerymodel that queries into a table that has BLOB Field, that contains image data in .PNG Format.
When i populate the table i get the Image column as ?PNG.
I realize that the view is unable to understand how to process binary data. So how do I go about solving this issue.
1. Should I sub-class QSqlQueryModel and implement data() function, that when it sees the index of the BLOB column to return a QPixmap
(or)
2. USe a Item delegate to render the view through a QLabel.
Please provide me with any pointers.
Thanks Once Again.
Bookmarks