27class Q_WIDGETS_EXPORT QTipLabel final :
public QLabel
31 explicit QTipLabel(
const QString &text,
const QPoint &pos, QWidget *w,
int msecDisplayTime);
32 ~QTipLabel() override;
34 void adjustTooltipScreen(
const QPoint &pos);
35 void updateSize(
const QPoint &pos);
37 bool eventFilter(QObject *, QEvent *) override;
39 void reuseTip(
const QString &text,
int msecDisplayTime,
const QPoint &pos);
41 void hideTipImmediately();
42 void setTipRect(QWidget *w,
const QRect &r);
43 void restartExpireTimer(
int msecDisplayTime);
44 bool tipChanged(
const QPoint &pos,
const QString &text, QObject *o);
45 void placeTip(
const QPoint &pos, QWidget *w);
47 static QScreen *getTipScreen(
const QPoint &pos, QWidget *w);
49 void timerEvent(QTimerEvent *e) override;
50 void paintEvent(QPaintEvent *e) override;
51 void mouseMoveEvent(QMouseEvent *e) override;
52 void resizeEvent(QResizeEvent *e) override;
54#if QT_CONFIG(style_stylesheet)
56 void styleSheetParentDestroyed();
59 QWidget *styleSheetParent;
63 friend class QToolTip;
65 static QTipLabel *instance;
66 QBasicTimer hideTimer, expireTimer;