qsettooltip - assign tooltip text to widget
Name
qsettooltip — assign tooltip text to widget
Syntax
qsettooltip [widget] text
Description
The qsettooltip command assigns a tooltip to a widget. This is a floating piece of text that appears when the mouse hovers over the widget. The tooltip text usually gives a short description of the widgets functionality.
Arguments
widget
The widget to which the tool tip text will be associated. This can be any type of widget.
text
The tooltip text. This may be HTML formatted.
Examples
Ex.1: QToolTip
set w [qwidget ] qsetwindowtitle "Tool tip" # Create text editor and "Show Text" button. set layout [qhboxlayout $w] set label [qlabel "First Name :"] qaddwidget $layout $label set lineedit [qlineedit] qaddwidget $layout $lineedit qsettooltip $lineedit "The persons first name" qshow $w
In the example above a tool tip is assigned to the name entry field.