<?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[Qt 5.12: QAbstractItemModel::createIndex method input parameter]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I use Qt for Python and subclassed QAbstractItemModel to create a model for my treeView. For the data structure I used nodes. Each node has a parent and a childList to represent the data structure.</p>
<p dir="auto">When I call the createIndex method I passed as the third argument the node itself, which worked fine. After upgrading from Qt for Python 5.11.2 to 5.12 it gives an error, that it expects other input parameter. Here is the error:</p>
<pre><code>TypeError: 'PySide2.QtCore.QAbstractItemModel.createIndex' called with wrong argument types:
PySide2.QtCore.QAbstractItemModel.createIndex(int, int, Node)
Supported signatures:
  PySide2.QtCore.QAbstractItemModel.createIndex(int, int, quintptr = 0)
  PySide2.QtCore.QAbstractItemModel.createIndex(int, int, void = nullptr)
</code></pre>
<p dir="auto">Can someone explain this?<br />
Thanks<br />
Daniel</p>
]]></description><link>https://forum.qt.io/topic/98085/qt-5-12-qabstractitemmodel-createindex-method-input-parameter</link><generator>RSS for Node</generator><lastBuildDate>Sat, 09 May 2026 00:03:24 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/98085.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 30 Dec 2018 23:16:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Qt 5.12: QAbstractItemModel::createIndex method input parameter on Wed, 02 Jan 2019 22:31:34 GMT]]></title><description><![CDATA[<p dir="auto">Please, don't forget to update this thread with the result or post a link to the email conversation.</p>
]]></description><link>https://forum.qt.io/post/502427</link><guid isPermaLink="true">https://forum.qt.io/post/502427</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Wed, 02 Jan 2019 22:31:34 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 5.12: QAbstractItemModel::createIndex method input parameter on Wed, 02 Jan 2019 22:29:35 GMT]]></title><description><![CDATA[<p dir="auto">Thanks for your answer. I wrote an email as you suggested...</p>
]]></description><link>https://forum.qt.io/post/502425</link><guid isPermaLink="true">https://forum.qt.io/post/502425</guid><dc:creator><![CDATA[Dagginio]]></dc:creator><pubDate>Wed, 02 Jan 2019 22:29:35 GMT</pubDate></item><item><title><![CDATA[Reply to Qt 5.12: QAbstractItemModel::createIndex method input parameter on Mon, 31 Dec 2018 22:41:48 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">PySide2 being pretty new, I would recommend asking this question on the <a href="https://lists.qt-project.org/listinfo/pyside" target="_blank" rel="noopener noreferrer nofollow ugc">dedicated mailing list</a>. You'll find there PySide2's developers/maintainers. This forum is more user oriented.</p>
]]></description><link>https://forum.qt.io/post/502196</link><guid isPermaLink="true">https://forum.qt.io/post/502196</guid><dc:creator><![CDATA[SGaist]]></dc:creator><pubDate>Mon, 31 Dec 2018 22:41:48 GMT</pubDate></item></channel></rss>