<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Python GUIs - qtablemodel</title><link>https://www.pythonguis.com/</link><description>Create GUI applications with Python and Qt</description><atom:link href="https://www.pythonguis.com/feeds/qtablemodel.tag.rss.xml" rel="self"/><lastBuildDate>Mon, 29 Mar 2021 09:00:00 +0000</lastBuildDate><item><title>How to debug: QAbstractTableModel subclass does not call flags() — Understanding why flags() isn't called when using QDataWidgetMapper with standard widgets</title><link>https://www.pythonguis.com/faq/how-to-debug-qabstracttablemodel-subclass-does-not-call-flags/</link><description>If you've subclassed &lt;code&gt;QAbstractTableModel&lt;/code&gt; and noticed that your &lt;code&gt;data()&lt;/code&gt; and &lt;code&gt;setData()&lt;/code&gt; methods are being called correctly, but &lt;code&gt;flags()&lt;/code&gt; never seems to fire, you're not alone. This is a common source of confusion, especially when you're using &lt;code&gt;QDataWidgetMapper&lt;/code&gt; to connect your model to standard form widgets like &lt;code&gt;QLineEdit&lt;/code&gt;.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Martin Fitzpatrick</dc:creator><pubDate>Mon, 29 Mar 2021 09:00:00 +0000</pubDate><guid>tag:www.pythonguis.com,2021-03-29:/faq/how-to-debug-qabstracttablemodel-subclass-does-not-call-flags/</guid><category>pyqt5</category><category>pyqt</category><category>pyside2</category><category>pyside</category><category>model-view</category><category>qtablemodel</category><category>python</category><category>qt</category><category>qt5</category></item></channel></rss>