<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Python GUIs - qsqlrelationaltablemodel</title><link>https://www.pythonguis.com/</link><description>Create GUI applications with Python and Qt</description><atom:link href="https://www.pythonguis.com/feeds/qsqlrelationaltablemodel.tag.rss.xml" rel="self"/><lastBuildDate>Sun, 06 Jun 2021 09:00:00 +0000</lastBuildDate><item><title>QDataWidgetMapper with QSqlRelationalTableModel and QComboBoxes — How to correctly map relational database fields to combo boxes using QDataWidgetMapper</title><link>https://www.pythonguis.com/faq/qdatawidgetmapper-with-relational-model-and-qcomboxes-working-of-relations/</link><description>I'm trying to use &lt;code&gt;QDataWidgetMapper&lt;/code&gt; with a &lt;code&gt;QSqlRelationalTableModel&lt;/code&gt; to map foreign key fields to &lt;code&gt;QComboBox&lt;/code&gt; widgets. The regular fields (like text and numbers) work fine, but the combo boxes for my relational columns remain empty. How do I get this working correctly?</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Martin Fitzpatrick</dc:creator><pubDate>Sun, 06 Jun 2021 09:00:00 +0000</pubDate><guid>tag:www.pythonguis.com,2021-06-06:/faq/qdatawidgetmapper-with-relational-model-and-qcomboxes-working-of-relations/</guid><category>pyqt5</category><category>sql</category><category>qdatawidgetmapper</category><category>qcombobox</category><category>qsqlrelationaltablemodel</category><category>python</category><category>qt</category><category>qt5</category><category>databases</category></item></channel></rss>