File indexing completed on 2026-09-21 09:23:40
0001
0002
0003
0004
0005 #ifndef QTOOLTIP_H
0006 #define QTOOLTIP_H
0007
0008 #include <QtWidgets/qtwidgetsglobal.h>
0009 #include <QtWidgets/qwidget.h>
0010
0011 QT_REQUIRE_CONFIG(tooltip);
0012 QT_BEGIN_NAMESPACE
0013
0014 class Q_WIDGETS_EXPORT QToolTip
0015 {
0016 QToolTip() = delete;
0017 public:
0018 static void showText(const QPoint &pos, const QString &text,
0019 QWidget *w = nullptr, const QRect &rect = {}, int msecShowTime = -1);
0020 static inline void hideText() { showText(QPoint(), QString()); }
0021
0022 static bool isVisible();
0023 static QString text();
0024
0025 static QPalette palette();
0026 static void setPalette(const QPalette &);
0027 static QFont font();
0028 static void setFont(const QFont &);
0029 };
0030
0031 QT_END_NAMESPACE
0032
0033 #endif