<?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[QtSql.RelationalTableModel weird behavior]]></title><description><![CDATA[<p dir="auto">Hi Everyone,</p>
<p dir="auto">I am using QtSql.RelationalTableModel and I have setRelation defined. setRelation just seems to act really really weird. If I add a new row and then click the cell that the relation is based on up comes a combobox. I select the value and then I click on a different cell. The value that is returned is the id value. When I go to hit enter to add the row it does not get added. Do I need to do anything in the delegate to get this to work?</p>
<p dir="auto">Also why when I do self.model.insertRow(row) does it not automatically add the row to the database? It is only after I fill in the information that the row id gets added.</p>
<p dir="auto">I am sure that it is user error, but has anyone else come across this?</p>
<p dir="auto">Thank you,<br />
Luke</p>
]]></description><link>https://forum.qt.io/topic/47293/qtsql-relationaltablemodel-weird-behavior</link><generator>RSS for Node</generator><lastBuildDate>Tue, 13 Oct 2026 10:06:09 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/47293.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 21 Oct 2014 22:05:04 GMT</pubDate><ttl>60</ttl></channel></rss>