Skip to content

UniDeskTooltip Type

Tooltip control based on QtQuick ToolTip. Displays a small hint when the mouse hovers over an associated control.

ItemDescription
Control TypeVisual Control
Source FileUniDesk/Controls/UniDeskTooltip.qml
InheritsQtQuick Templates ToolTip
QML Importimport UniDesk.Controls 1.0

Custom Properties

PropertyTypeDefaultDescription
textstringTooltip text (inherited from ToolTip)
fontfontUniDeskTextStyle.tinyFont

Style

  • Positioned 3px above the associated control, centered
  • Background: opaque (white in light / black in dark)
  • Border: 0.5px, auto-adapts to light/dark themes
  • Padding: 6px
  • Font: UniDeskTextStyle.tiny

Behavior

  • Supports ESC key and outside click (press/release) to close
  • Auto-wraps text (Text.Wrap)

Example

qml
import UniDesk.Controls 1.0

UniDeskButton {
    text: "Save"
    UniDeskTooltip {
        text: "Save current content to file"
    }
}

Released under the CC BY-SA 4.0 open documentation license.