code: def get_configspec_str(self, index):
          
          p = index.internalPointer()
          if p is None:
              return
          spec = p.configspec
          if spec is None:
              return None
          k = self.get_key(p, index.row())
          try:
              return spec[k]
          except KeyError:
              return None
docs: Return the config spec string of the given index
  
          The index stores the section as internal pointer.
          The row of the index determines the key.
          The section stores the spec in its configspec attribute
          The key is used on the configspec attribute to return the spec
  
          :param index: The QModelIndex
          :type index: QModelIndex
          :returns: The spec for the given index or None