I am learning to code in PySide (Qt in Python), and find it helpful to look at the C++ source code for things when I am confused.

I am having trouble finding the implementation of createIndex(), which we use for QAbstractItemModel. It is a method under QtCore.QAbstractItemModel, so I expect to find it in qabstractitemmodel.cpp. Indeed I see the documentation therein, but not the actual code that implements it.

So, where is QAbstractItemModel::createIndex()? I'm not a C++ programmer, so assume I'm missing something obvious.