You can for example set the toolTipText to tip("This is a tool tip"), but I think it is easier to set tooltips directly in the code (i.e. rather than using the property editor).
I have committed the error to set tooltiptext in the property editor for two controls. I deleted them in vain. Empty string remained. I have to manually correct two lines in the automatically generated lines after each refreshment of the automatic code.