Class SBGUIToolTip::GlobalFilter#
Inherits the following classes: QObject
Public Functions#
| Type | Name |
|---|---|
| GlobalFilter (QObject * parent) Constructs a GlobalFilter for the given parent object (typically the QApplication) and creates a global tooltip instance. |
|
| ~GlobalFilter () override Destroys the GlobalFilter and schedules the global tooltip for deletion. |
Protected Functions#
| Type | Name |
|---|---|
| bool | eventFilter (QObject * obj, QEvent * event) override Event filter for global tooltips. |
Public Functions Documentation#
function GlobalFilter#
Constructs a GlobalFilter for the given parent object (typically the QApplication) and creates a global tooltip instance.
Parameters:
parentThe parent object for the filter.
function ~GlobalFilter#
Destroys the GlobalFilter and schedules the global tooltip for deletion.
Protected Functions Documentation#
function eventFilter#
Event filter for global tooltips.
Intercepts QEvent::ToolTip events across the application, extracts appropriate tooltip text from item views, menus, toolbars, and generic widgets, and displays a custom SBGUIToolTip. If no tooltip text is found, any visible custom tooltip is hidden and the event is passed to the base implementation.
Parameters:
objThe QObject that received the event.eventThe QEvent to be filtered (expected to be a QHelpEvent for tooltips).
Returns:
true if the event was handled (tooltip displayed or hidden); otherwise false.