<?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 QTableView when my datasource gets a new record from remote server.]]></title><description><![CDATA[<p dir="auto">I implement a QAbstructTableModel, and I want insert a new row at the top of tableview when my datasource gets a new record from remote server. How to do this?</p>
]]></description><link>https://forum.qt.io/topic/119849/update-qtableview-when-my-datasource-gets-a-new-record-from-remote-server</link><generator>RSS for Node</generator><lastBuildDate>Fri, 28 Aug 2026 12:36:19 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/119849.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 12 Oct 2020 05:01:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Update QTableView when my datasource gets a new record from remote server. on Mon, 12 Oct 2020 14:58:58 GMT]]></title><description><![CDATA[<p dir="auto">From <a href="https://doc.qt.io/qt-5/qabstractitemmodel.html#subclassing" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-5/qabstractitemmodel.html#subclassing</a></p>
<blockquote>
<p dir="auto">implementation must call <code>beginInsertRows()</code> <em>before</em> inserting new rows into the data structure, and <code>endInsertRows()</code> immediately afterwards.</p>
</blockquote>
]]></description><link>https://forum.qt.io/post/621846</link><guid isPermaLink="true">https://forum.qt.io/post/621846</guid><dc:creator><![CDATA[VRonin]]></dc:creator><pubDate>Mon, 12 Oct 2020 14:58:58 GMT</pubDate></item><item><title><![CDATA[Reply to Update QTableView when my datasource gets a new record from remote server. on Mon, 12 Oct 2020 08:39:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/ryman">@<bdi>ryman</bdi></a> said in <a href="/post/621753">Update QTableView when my datasource gets a new record from remote server.</a>:</p>
<blockquote>
<p dir="auto">when my datasource gets a new record from remote server</p>
</blockquote>
<p dir="auto">What do you mean by this?  Do you mean something outside of your program causes the remote data source to now have an extra row?  In which case, how does the remote know that has happened, and how would it inform your program that it had happened?</p>
]]></description><link>https://forum.qt.io/post/621800</link><guid isPermaLink="true">https://forum.qt.io/post/621800</guid><dc:creator><![CDATA[JonB]]></dc:creator><pubDate>Mon, 12 Oct 2020 08:39:00 GMT</pubDate></item></channel></rss>