<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[SOLVED] QTableView + QStyledItemDelegate + BLOB Image - Having problems when I update an existing image to a new image.]]></title><description><![CDATA[<p dir="auto">Hello<br />
I am currently using a TableView that has an QStyledItemDelegate to display the image that is stored as BLOB in a MySQL database. I am having a problem when I need to change an image in one cell. Please help. This is what i am currently doing.</p>
<p dir="auto">Now in some locations (cells - Column 3) I use a default image. I use a QTAbleview::clicked signal and in the corresponding cell index, i call a QFileDialog to get a filename. From the filename I get a QByteArray which i then use a QSqlQuery to update the database (I get no errors). Once i do that i call a function called refresh model which in essence reloads the entire model to the view. But somehow the image stays default (The last image does not update to the new one).<br />
Please help.</p>
]]></description><link>https://forum.qt.io/topic/47450/solved-qtableview-qstyleditemdelegate-blob-image-having-problems-when-i-update-an-existing-image-to-a-new-image</link><generator>RSS for Node</generator><lastBuildDate>Wed, 14 Oct 2026 10:17:10 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/47450.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 26 Oct 2014 16:14:50 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [SOLVED] QTableView + QStyledItemDelegate + BLOB Image - Having problems when I update an existing image to a new image. on Mon, 27 Oct 2014 02:19:48 GMT]]></title><description><![CDATA[<p dir="auto">Thanks SGaist. That was infact the problem. I read the ByteArray before and after writing and it was the same. Then I noticed I made a mistake while calling the addbindvalue. Corrected that and now it works like a charm</p>
]]></description><link>https://forum.qt.io/post/249082</link><guid isPermaLink="true">https://forum.qt.io/post/249082</guid><dc:creator><![CDATA[roahanramesh]]></dc:creator><pubDate>Mon, 27 Oct 2014 02:19:48 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] QTableView + QStyledItemDelegate + BLOB Image - Having problems when I update an existing image to a new image. on Sun, 26 Oct 2014 18:32:08 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">Did you check that the data in your database did in fact get changed ?<br />
Are you sure the database has been reloaded ?</p>
]]></description><link>https://forum.qt.io/post/249031</link><guid isPermaLink="true">https://forum.qt.io/post/249031</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Sun, 26 Oct 2014 18:32:08 GMT</pubDate></item></channel></rss>