blob: 863162e15b3d4b50d1b59ba755e46b7ddcddb0f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef QTOOLTIP_H
#define QTOOLTIP_H
#include <QtWidgets/qtwidgetsglobal.h>
#include <QtWidgets/qwidget.h>
QT_REQUIRE_CONFIG(tooltip);
QT_BEGIN_NAMESPACE
class Q_WIDGETS_EXPORT QToolTip
{
QToolTip() = delete;
public:
static void showText(const QPoint &pos, const QString &text,
QWidget *w = nullptr, const QRect &rect = {}, int msecShowTime = -1);
static inline void hideText() { showText(QPoint(), QString()); }
static bool isVisible();
static QString text();
static QPalette palette();
static void setPalette(const QPalette &);
static QFont font();
static void setFont(const QFont &);
};
QT_END_NAMESPACE
#endif // QTOOLTIP_H
|