Qt 6.11 is out! See what's new in the release
blog
Custom Tooltip regions on QWidget
General and Desktop
4
Posts
3
Posters
6.4k
Views
1
Watching
-
Is there a standardized way if I have a QWidget and would like to have several custom regions (defined by QRect), where hovering over each one triggers a different tooltip?
-
From the "documentation":http://doc.trolltech.com/4.7-snapshot/qtooltip.html for QToolTip...
bq. It is also possible to show different tool tips for different regions of a widget, by using a QHelpEvent of type QEvent::ToolTip. Intercept the help event in your widget's event() function and call QToolTip::showText() with the text you want to display. The Tooltips example illustrates this technique.
EDIT: So, pretty much what Franzk said above...
-
Thanks for the (tool)tip.