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
11
QT_REQUIRE_CONFIG
(
tooltip
);
12
QT_BEGIN_NAMESPACE
13
14
class
Q_WIDGETS_EXPORT
QToolTip
15
{
16
QToolTip() =
delete
;
17
public
:
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
31
QT_END_NAMESPACE
32
33
#
endif
// QTOOLTIP_H
QToolTip
The QToolTip class provides tool tips (balloon help) for any widget.
Definition
qtooltip.h:15
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qApp
#define qApp
Definition
qcoreapplication.h:37
QT_REQUIRE_CONFIG
QT_REQUIRE_CONFIG(liburing)
qtbase
src
widgets
kernel
qtooltip.h
Generated on
for Qt by
1.16.1