def index(self, row, column, parent):
if not self.hasIndex(row, column, parent):<EOL><INDENT>return QtCore.QModelIndex()<EOL><DEDENT>if not parent.isValid():<EOL><INDENT>parentItem = self.root<EOL><DEDENT>else:<EOL><INDENT>parentItem = parent.internalPointer()<EOL><DEDENT>childItem = parentItem.getChild(row)<EOL>if childItem:<EOL><INDENT>return self.createIndex(row, column, childItem)<EOL>"""<STR_LIT>"""<EOL><DEDENT>else:<EOL><INDENT>return QtCore.QModelIndex()<EOL><DEDENT>
Returns the index of the item in the model specified by the given row, column and parent index.
        row, column == int, parent == QModelIndex