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
qtooltip.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// Qt-Security score:significant reason:default
4
5#ifndef QTOOLTIP_H
6#define QTOOLTIP_H
7
8#include <QtWidgets/qtwidgetsglobal.h>
9#include <QtWidgets/qwidget.h>
10
13
15{
16 QToolTip() = delete;
17public:
18 static void showText(const QPoint &pos, const QString &text,
19 QWidget *w = nullptr, const QRect &rect = {}, int msecShowTime = -1);
20 static inline void hideText() { showText(QPoint(), QString()); }
21
22 static bool isVisible();
23 static QString text();
24
25 static QPalette palette();
26 static void setPalette(const QPalette &);
27 static QFont font();
28 static void setFont(const QFont &);
29};
30
31QT_END_NAMESPACE
32
33#endif // QTOOLTIP_H
The QToolTip class provides tool tips (balloon help) for any widget.
Definition qtooltip.h:15
Combined button and popup list for selecting options.
#define qApp
QT_REQUIRE_CONFIG(liburing)