40 ToolTipLabel(
const QString &text,
const QPoint &pos, QWidget *w,
int msecDisplayTime);
43 void adjustTooltipScreen(
const QPoint &pos);
44 void updateSize(
const QPoint &pos);
45 bool eventFilter(QObject *, QEvent *)
override;
46 QBasicTimer hideTimer, expireTimer;
48 void reuseTip(
const QString &text,
int msecDisplayTime,
const QPoint &pos);
50 void hideTipImmediately();
51 void setTipRect(QWidget *w,
const QRect &r);
52 void restartExpireTimer(
int msecDisplayTime);
53 bool tipChanged(
const QPoint &pos,
const QString &text, QObject *o);
54 void placeTip(
const QPoint &pos, QWidget *w,
const QPoint &alternativeTopRightPos = QPoint(),
bool doNotForceYToBeWithinScreen =
false);
55#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
56 static QScreen *getTipScreen(
const QPoint& pos, QWidget* w);
58 static int getTipScreen(
const QPoint& pos, QWidget* w);
62 void timerEvent(QTimerEvent *e)
override;
63 void paintEvent(QPaintEvent *e)
override;
64 void mouseMoveEvent(QMouseEvent *e)
override;
65 void resizeEvent(QResizeEvent *e)
override;
66#ifndef QT_NO_STYLE_STYLESHEET
71 void styleSheetParentDestroyed() {
72 setProperty(
"_q_stylesheet_parent", QVariant());
76 QWidget *styleSheetParent;
92 const QPoint& alternativeTopRightPos = QPoint(),
93 bool doNotForceYToBeWithinScreen =
false);
99 bool doNotForceYToBeWithinScreen =
false);
106 const QPoint& alternativeTopRightPos = QPoint(),
107 bool doNotForceYToBeWithinScreen =
false);
108 static inline void hideText() {
showText(QPoint(), QString()); }
110 static QString
text();
114 static void setFont(
const QFont &);