(self, index)
return self.data(index, Qt.EditRole)
Return the 'key' value that is to be counted.

        The default implementation returns Qt.EditRole value for the index

        Parameters
        ----------
        index : QModelIndex
            The model index.

        Returns
        -------
        key : Any
Return the 'key' value that is to be counted.
Return the key value that is to be counted .
def key(self, index):
        # type: (QModelIndex) -> Any
        """
        Return the 'key' value that is to be counted.

        The default implementation returns Qt.EditRole value for the index

        Parameters
        ----------
        index : QModelIndex
            The model index.

        Returns
        -------
        key : Any
        """
        return self.data(index, Qt.EditRole)
def key ( self , index ) : # type: (QModelIndex) -> Any return self . data ( index , Qt . EditRole )