DtkWidget
5.6.0.2
DTK Widget module
include
dtkwidget
widgets
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
12
DWIDGET_BEGIN_NAMESPACE
13
14
class
DToolTip
:
public
DTipLabel
15
{
16
Q_OBJECT
17
18
public
:
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
25
DWIDGET_END_NAMESPACE
26
27
#endif
// DTOOLTIP_H
Dtk::Widget::DTipLabel
DTipLabel一个重新实现的 QLabel.
Definition:
dtiplabel.h:14
Dtk::Widget::DToolTip
DToolTip类似于 QToolTip 功能的类.
Definition:
dtooltip.h:15
QPoint
QSize
QString
制作者
1.9.3