class_docstr: Abstract ParameterTree item. 
  Used to represent the state of a Parameter from within a ParameterTree.
  
    - Sets first column of item to name
    - generates context menu if item is renamable or removable
    - handles child added / removed events
    - provides virtual functions for handling changes from parameter
  
  For more ParameterItem types, see ParameterTree.parameterTypes module.
class_docstr_tok: ["Abstract","ParameterTree","item",".","Used","to","represent","the","state","of","a","Parameter","from","within","a","ParameterTree",".","-","Sets","first","column","of","item","to","name","-","generates","context","menu","if","item","is","renamable","or","removable","-","handles","child","added","\/","removed","events","-","provides","virtual","functions","for","handling","changes","from","parameter","For","more","ParameterItem","types",",","see","ParameterTree.parameterTypes","module","."]
code: def titleChanged(self):
      # called when the user-visble title has changed (either opts['title'], or name if title is None)
  
      title = self.param.title()
      # This makes sure that items without a title or the title 'params' remain invisible
      if not title or title == "params":
          return
      self.setText(0, title)
      fm = QtGui.QFontMetrics(self.font(0))
      textFlags = QtCore.Qt.TextFlag.TextSingleLine
      size = fm.size(textFlags, self.text(0))
      size.setHeight(int(size.height() * 1.35))
      size.setWidth(int(size.width() * 1.15))
      self.setSizeHint(0, size)
  
imports: from ..Qt import QtCore, QtGui, QtWidgets
label_desc: Use image node_id 15 for calling the ParameterItem obj's underlying member method code with example usage: obj.titleChanged() without return types