Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/QtWidgets/qtooltip.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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 
0004 #ifndef QTOOLTIP_H
0005 #define QTOOLTIP_H
0006 
0007 #include <QtWidgets/qtwidgetsglobal.h>
0008 #include <QtWidgets/qwidget.h>
0009 
0010 QT_REQUIRE_CONFIG(tooltip);
0011 QT_BEGIN_NAMESPACE
0012 
0013 class Q_WIDGETS_EXPORT QToolTip
0014 {
0015     QToolTip() = delete;
0016 public:
0017     static void showText(const QPoint &pos, const QString &text,
0018                          QWidget *w = nullptr, const QRect &rect = {}, int msecShowTime = -1);
0019     static inline void hideText() { showText(QPoint(), QString()); }
0020 
0021     static bool isVisible();
0022     static QString text();
0023 
0024     static QPalette palette();
0025     static void setPalette(const QPalette &);
0026     static QFont font();
0027     static void setFont(const QFont &);
0028 };
0029 
0030 QT_END_NAMESPACE
0031 
0032 #endif // QTOOLTIP_H