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
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
4#ifndef QTOOLTIP_H
5#define QTOOLTIP_H
6
7#include <QtWidgets/qtwidgetsglobal.h>
8#include <QtWidgets/qwidget.h>
9
12
13class Q_WIDGETS_EXPORT QToolTip
14{
15 QToolTip() = delete;
16public:
17 static void showText(const QPoint &pos, const QString &text,
18 QWidget *w = nullptr, const QRect &rect = {}, int msecShowTime = -1);
19 static inline void hideText() { showText(QPoint(), QString()); }
20
21 static bool isVisible();
22 static QString text();
23
24 static QPalette palette();
25 static void setPalette(const QPalette &);
26 static QFont font();
27 static void setFont(const QFont &);
28};
29
31
32#endif // QTOOLTIP_H
\reentrant
Definition qfont.h:22
The QPalette class contains color groups for each widget state.
Definition qpalette.h:19
\inmodule QtCore\reentrant
Definition qpoint.h:25
\inmodule QtCore\reentrant
Definition qrect.h:30
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
The QToolTip class provides tool tips (balloon help) for any widget.
Definition qtooltip.h:14
static void hideText()
Definition qtooltip.h:19
The QWidget class is the base class of all user interface objects.
Definition qwidget.h:99
QString text
rect
[4]
Combined button and popup list for selecting options.
GLfloat GLfloat GLfloat w
[0]
#define QT_REQUIRE_CONFIG(feature)
edit isVisible()