<?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[update()]]></title><description><![CDATA[<p dir="auto">how can i update data in table view when data on database changed ? Plz, help me.<br />
I use QSqlQueryModel</p>
]]></description><link>https://forum.qt.io/topic/126888/update</link><generator>RSS for Node</generator><lastBuildDate>Sat, 24 Oct 2026 09:44:03 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/126888.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 22 May 2021 13:01:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to update() on Sat, 22 May 2021 14:30:25 GMT]]></title><description><![CDATA[<p dir="auto">okay, let me try this</p>
]]></description><link>https://forum.qt.io/post/661007</link><guid isPermaLink="true">https://forum.qt.io/post/661007</guid><dc:creator><![CDATA[Duy Khang]]></dc:creator><pubDate>Sat, 22 May 2021 14:30:25 GMT</pubDate></item><item><title><![CDATA[Reply to update() on Sat, 22 May 2021 14:11:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/duy-khang">@<bdi>Duy-Khang</bdi></a><br />
Depends on whether by "when data on database changed" you mean you change it from within the same Qt program or you mean by some other external application.</p>
<p dir="auto"><a href="https://forum.qt.io/topic/91259/how-to-refresh-qsqlquerymodel">https://forum.qt.io/topic/91259/how-to-refresh-qsqlquerymodel</a> mentions a couple of methods to refresh/rerun the query, if that is what you want to do manually.</p>
<p dir="auto"><code>QSqlTableModel</code> would allow you to update a table from your Qt code, and would "see" any changes done that way and bring the view back up to date.</p>
]]></description><link>https://forum.qt.io/post/661002</link><guid isPermaLink="true">https://forum.qt.io/post/661002</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Sat, 22 May 2021 14:11:38 GMT</pubDate></item></channel></rss>