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