Qt's tooltip does not work as expected with some classes, e.g. More...
#include <Widgets.h>
Static Public Member Functions | |
| static void | showText (const QPoint &pos, const QString &text, QWidget *w=0) |
Protected Member Functions | |
| bool | eventFilter (QObject *o, QEvent *e) |
| void | installEventFilter () |
| void | removeEventFilter () |
| void | timerEvent (QTimerEvent *e) |
| ToolTip () | |
| virtual | ~ToolTip () |
Static Protected Member Functions | |
| static ToolTip * | instance () |
Qt's tooltip does not work as expected with some classes, e.g.
when showing it in the 3d view it immediately receives a timer event to destroy itself. This class is thought to circumvent this behaviour by filtering the internal timer events.
Definition at line 240 of file Widgets.h.
| ToolTip::ToolTip | ( | ) | [protected] |
Definition at line 544 of file Widgets.cpp.
Referenced by instance().
| ToolTip::~ToolTip | ( | ) | [protected, virtual] |
Definition at line 548 of file Widgets.cpp.
| bool ToolTip::eventFilter | ( | QObject * | o, | |
| QEvent * | e | |||
| ) | [protected] |
Definition at line 595 of file Widgets.cpp.
References removeEventFilter().
| void ToolTip::installEventFilter | ( | ) | [protected] |
Definition at line 552 of file Widgets.cpp.
Referenced by showText().
| ToolTip * ToolTip::instance | ( | void | ) | [static, protected] |
| void ToolTip::removeEventFilter | ( | ) | [protected] |
Definition at line 560 of file Widgets.cpp.
Referenced by eventFilter().
| void ToolTip::showText | ( | const QPoint & | pos, | |
| const QString & | text, | |||
| QWidget * | w = 0 | |||
| ) | [static] |
Definition at line 568 of file Widgets.cpp.
References installEventFilter(), and instance().
Referenced by MeshGui::ViewProviderMeshCurvature::curvatureInfoCallback(), InspectionGui::ViewProviderInspection::inspectCallback(), and timerEvent().
| void ToolTip::timerEvent | ( | QTimerEvent * | e | ) | [protected] |
Definition at line 586 of file Widgets.cpp.
References showText().
1.6.1