![]() |
Home · Modules · Classes · Namespaces · Functions |
The QxtToolTip class provides means for showing any arbitrary widget as a tooltip. More...
#include <QxtToolTip>
The QxtToolTip class provides means for showing any arbitrary widget as a tooltip.
QxtToolTip provides means for showing any arbitrary widget as a tooltip.
Note: The rich text support of QToolTip already makes it possible to show heavily customized tooltips with lists, tables, embedded images and such. However, for example dynamically created images like thumbnails cause problems. Basically the only way is to dump the thumbnail to a temporary file to be able to embed it into HTML. This is where QxtToolTip steps in. A generated thumbnail may simply be set on a QLabel which is then shown as a tooltip. Yet another use case is a tooltip with dynamically changing content.
Warning: Added tooltip widgets remain in the memory for the lifetime of the application or until they are removed/deleted. Do NOT flood your application up with lots of complex tooltip widgets or it will end up being a resource hog. QToolTip is sufficient for most of the cases!
Hides the tooltip.
See also show().
Returns the margin of the tooltip.
See also setMargin().
Returns the opacity level of the tooltip.
See also setOpacity() and QWidget::windowOpacity().
Sets the margin of the tooltip.
The default value is QStyle::PM_ToolTipLabelFrameWidth.
See also margin().
Sets the opacity level of the tooltip.
The default value is QStyle::SH_ToolTipLabel_Opacity.
See also opacity() and QWidget::setWindowOpacity().
Sets the tooltip to be shown for parent. An optional rect may also be passed.
See also toolTip().
Sets the rect on which tooltip is shown for parent.
See also toolTipRect().
Shows the tooltip at pos for parent at rect.
See also hide().
Returns the tooltip for parent.
See also setToolTip().
Returns the rect on which tooltip is shown for parent.
See also setToolTipRect().
Copyright © 2007-2011 Qxt Foundation |
Qxt 0.6.2 |