File indexing completed on 2026-06-03 08:40:30
0001
0002
0003
0004
0005 #ifndef QWHATSTHIS_H
0006 #define QWHATSTHIS_H
0007
0008 #include <QtWidgets/qtwidgetsglobal.h>
0009 #include <QtCore/qobject.h>
0010 #include <QtGui/qcursor.h>
0011
0012 QT_REQUIRE_CONFIG(whatsthis);
0013
0014 QT_BEGIN_NAMESPACE
0015
0016 #if QT_CONFIG(action)
0017 class QAction;
0018 #endif
0019
0020 class Q_WIDGETS_EXPORT QWhatsThis
0021 {
0022 QWhatsThis() = delete;
0023
0024 public:
0025 static void enterWhatsThisMode();
0026 static bool inWhatsThisMode();
0027 static void leaveWhatsThisMode();
0028
0029 static void showText(const QPoint &pos, const QString &text, QWidget *w = nullptr);
0030 static void hideText();
0031
0032 #if QT_CONFIG(action)
0033 static QAction *createAction(QObject *parent = nullptr);
0034 #endif
0035
0036 };
0037
0038 QT_END_NAMESPACE
0039
0040 #endif