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 ()
 

Detailed Description

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.

Author
Werner Mayer

Constructor & Destructor Documentation

◆ ToolTip()

ToolTip::ToolTip ( )
protected

Referenced by instance().

◆ ~ToolTip()

ToolTip::~ToolTip ( )
protectedvirtual

Member Function Documentation

◆ eventFilter()

bool ToolTip::eventFilter ( QObject *  o,
QEvent *  e 
)
protected

References removeEventFilter().

◆ installEventFilter()

void ToolTip::installEventFilter ( )
protected

Referenced by showText().

◆ instance()

ToolTip * ToolTip::instance ( )
staticprotected

References ToolTip().

Referenced by showText().

◆ removeEventFilter()

void ToolTip::removeEventFilter ( )
protected

Referenced by eventFilter().

◆ showText()

void ToolTip::showText ( const QPoint &  pos,
const QString &  text,
QWidget *  w = 0 
)
static

◆ timerEvent()

void ToolTip::timerEvent ( QTimerEvent *  e)
protected

The documentation for this class was generated from the following files:
  • src/Gui/Widgets.h
  • src/Gui/Widgets.cpp