API Documentation
Loading...
Searching...
No Matches
QCustomTooltip Class Reference

#include <QCustomTooltip.h>

Inheritance diagram for QCustomTooltip:
[legend]
Collaboration diagram for QCustomTooltip:
[legend]

Public Slots

void styleSheetParentDestroyed ()
 

Public Member Functions

 QCustomTooltip (const QString &text, const QPointF &pos, QWidget *parent=nullptr)
 
 ~QCustomTooltip ()
 
void updateSize (const QPointF &pos)
 
bool eventFilter (QObject *, QEvent *) override
 
void reuseTip (const QString &text, const QPointF &pos)
 
void hideTip ()
 
void hideTipImmediately (int animation_duration=-1)
 
void setTipRect (QWidget *w, const QRect &r)
 
bool tipChanged (const QPointF &pos, const QString &text, QObject *o)
 
void placeTip (const QPointF &pos, QWidget *w)
 
int margin () const
 
QSize sizeHint () const override
 
void setTargetOffset (QPoint target_offset)
 

Static Public Member Functions

static QCustomTooltipshow (const QString &text, const QPointF &pos, QWidget *w, int animation_duration=-1)
 
static void hide (int animation_duration=-1)
 
static bool IsShowing ()
 

Protected Member Functions

void timerEvent (QTimerEvent *e) override
 
void paintEvent (QPaintEvent *e) override
 
void mouseMoveEvent (QMouseEvent *e) override
 
void resizeEvent (QResizeEvent *e) override
 

Constructor & Destructor Documentation

◆ QCustomTooltip()

QCustomTooltip ( const QString & text,
const QPointF & pos,
QWidget * parent = nullptr )

◆ ~QCustomTooltip()

Member Function Documentation

◆ eventFilter()

bool eventFilter ( QObject * ,
QEvent * e )
override

◆ hide()

void hide ( int animation_duration = -1)
static

◆ hideTip()

void hideTip ( )

◆ hideTipImmediately()

void hideTipImmediately ( int animation_duration = -1)

◆ IsShowing()

bool IsShowing ( )
static

◆ margin()

int margin ( ) const

◆ mouseMoveEvent()

void mouseMoveEvent ( QMouseEvent * e)
overrideprotected

◆ paintEvent()

void paintEvent ( QPaintEvent * e)
overrideprotected

◆ placeTip()

void placeTip ( const QPointF & pos,
QWidget * w )

◆ resizeEvent()

void resizeEvent ( QResizeEvent * e)
overrideprotected

◆ reuseTip()

void reuseTip ( const QString & text,
const QPointF & pos )

◆ setTargetOffset()

void setTargetOffset ( QPoint target_offset)

◆ setTipRect()

void setTipRect ( QWidget * w,
const QRect & r )

◆ show()

QCustomTooltip * show ( const QString & text,
const QPointF & pos,
QWidget * w,
int animation_duration = -1 )
static

◆ sizeHint()

QSize sizeHint ( ) const
override

◆ styleSheetParentDestroyed

void styleSheetParentDestroyed ( )
slot

◆ timerEvent()

void timerEvent ( QTimerEvent * e)
overrideprotected

◆ tipChanged()

bool tipChanged ( const QPointF & pos,
const QString & text,
QObject * o )

◆ updateSize()

void updateSize ( const QPointF & pos)

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