DtkWidget 5.6.0.2
DTK Widget module
dtooltip.h
1// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DTOOLTIP_H
6#define DTOOLTIP_H
7
8#include <DTipLabel>
9#include <dobject.h>
10#include <dtkwidget_global.h>
11
12DWIDGET_BEGIN_NAMESPACE
13
14class DToolTip : public DTipLabel
15{
16 Q_OBJECT
17
18public:
19 explicit DToolTip(const QString &text, bool completionClose = true);
20
21 QSize sizeHint() const override;
22 void show(const QPoint &pos, int duration);
23};
24
25DWIDGET_END_NAMESPACE
26
27#endif // DTOOLTIP_H
DTipLabel一个重新实现的 QLabel.
Definition: dtiplabel.h:14
DToolTip类似于 QToolTip 功能的类.
Definition: dtooltip.h:15