setTooltipText

open fun setTooltipText(text: String? = null)

Sets @text as the contents of the tooltip.

If @text contains any markup, it will be escaped.

This function will take care of setting property@Gtk.Widget:has-tooltip as a side effect, and of the default handler for the signal@Gtk.Widget::query-tooltip signal.

See also method@Gtk.Tooltip.set_text.

Parameters

text

the contents of the tooltip for @widget