Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
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
37QT_END_NAMESPACE
38
39#endif // QWHATSTHIS_H
The QHelpEvent class provides an event that is used to request helpful information about a particular...
Definition qevent.h:791
friend class QPainter
friend class QWidget
Definition qpainter.h:423
\inmodule QtCore\reentrant
Definition qpoint.h:28
void keyPressEvent(QKeyEvent *) override
This event handler, for event event, can be reimplemented in a subclass to receive key press events f...
void mouseReleaseEvent(QMouseEvent *) override
This event handler, for event event, can be reimplemented in a subclass to receive mouse release even...
void mouseMoveEvent(QMouseEvent *) override
This event handler, for event event, can be reimplemented in a subclass to receive mouse move events ...
void mousePressEvent(QMouseEvent *) override
This event handler, for event event, can be reimplemented in a subclass to receive mouse press events...
void paintEvent(QPaintEvent *) override
This event handler can be reimplemented in a subclass to receive paint events passed in event.
static QWhatsThat * instance
static void say(QWidget *, const QString &, int x=0, int y=0)
static QWhatsThisPrivate * instance
static void notifyToplevels(QEvent *e)
bool eventFilter(QObject *, QEvent *) override
Filters events if this object has been installed as an event filter for the watched object.
The QWhatsThis class provides a simple description of any widget, i.e.
Definition qwhatsthis.h:20
Combined button and popup list for selecting options.
Definition qcompare.h:76
#define qApp
static const int vMargin
static const char *const button_image[]
static const int hMargin
static int shadowWidth
static bool dropShadow()
QT_REQUIRE_CONFIG(whatsthis)