where to user those code?
I just user like this:
Qt Code:
  1. //...
  2. item->setToolTip(i,QString("My ToolTip Text"));
To copy to clipboard, switch view to plain text mode 

and my Qt version is Qt4.3.2