Gui::ToolTip Class Reference

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=nullptr)
 

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

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 ( void  )
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 = nullptr 
)
static

◆ timerEvent()

void ToolTip::timerEvent ( QTimerEvent *  e)
protected

The documentation for this class was generated from the following files: