Refer to the Qt documentation on the subset of HTML support in the Rich Text Format, which is what you (maybe unknowingly) are using in your tooltip.