Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-21 09:23:40

0001 // Copyright (C) 2016 The Qt Company Ltd.
0002 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
0003 // Qt-Security score:significant reason:default
0004 
0005 #ifndef QTOOLTIP_H
0006 #define QTOOLTIP_H
0007 
0008 #include <QtWidgets/qtwidgetsglobal.h>
0009 #include <QtWidgets/qwidget.h>
0010 
0011 QT_REQUIRE_CONFIG(tooltip);
0012 QT_BEGIN_NAMESPACE
0013 
0014 class Q_WIDGETS_EXPORT QToolTip
0015 {
0016     QToolTip() = delete;
0017 public:
0018     static void showText(const QPoint &pos, const QString &text,
0019                          QWidget *w = nullptr, const QRect &rect = {}, int msecShowTime = -1);
0020     static inline void hideText() { showText(QPoint(), QString()); }
0021 
0022     static bool isVisible();
0023     static QString text();
0024 
0025     static QPalette palette();
0026     static void setPalette(const QPalette &);
0027     static QFont font();
0028     static void setFont(const QFont &);
0029 };
0030 
0031 QT_END_NAMESPACE
0032 
0033 #endif // QTOOLTIP_H