Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qwhatsthis.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QWHATSTHIS_H
5#define QWHATSTHIS_H
6
7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtCore/qobject.h>
9#include <QtGui/qcursor.h>
10
12
14
15#if QT_CONFIG(action)
16class QAction;
17#endif // QT_CONFIG(action)
18
19class Q_WIDGETS_EXPORT QWhatsThis
20{
21 QWhatsThis() = delete;
22
23public:
24 static void enterWhatsThisMode();
25 static bool inWhatsThisMode();
26 static void leaveWhatsThisMode();
27
28 static void showText(const QPoint &pos, const QString &text, QWidget *w = nullptr);
29 static void hideText();
30
31#if QT_CONFIG(action)
32 static QAction *createAction(QObject *parent = nullptr);
33#endif // QT_CONFIG(action)
34
35};
36
38
39#endif // QWHATSTHIS_H
The QAction class provides an abstraction for user commands that can be added to different user inter...
Definition qaction.h:30
\inmodule QtCore
Definition qobject.h:103
\inmodule QtCore\reentrant
Definition qpoint.h:25
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
The QWhatsThis class provides a simple description of any widget, i.e.
Definition qwhatsthis.h:20
The QWidget class is the base class of all user interface objects.
Definition qwidget.h:99
QString text
Combined button and popup list for selecting options.
GLfloat GLfloat GLfloat w
[0]
#define QT_REQUIRE_CONFIG(feature)