.TH "kdk::KBallonTip" 3 "Version version:3.0" "LIBKYSDK-APPLICATIONS" \" -*- nroff -*- .ad l .nh .SH NAME kdk::KBallonTip \- 消息提示框,支持五种样式 .SH SYNOPSIS .br .PP .PP \fC#include \fP .PP Inherits QWidget\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBKBallonTip\fP (QWidget *parent=nullptr)" .br .ti -1c .RI "\fBKBallonTip\fP (const QString &content, const \fBTipType\fP &type, QWidget *parent=nullptr)" .br .ti -1c .RI "void \fBshowInfo\fP ()" .br .RI "显示时间完毕后消失 " .ti -1c .RI "void \fBsetTipType\fP (const \fBTipType\fP &type)" .br .RI "设置类型 " .ti -1c .RI "\fBTipType\fP \fBtipType\fP ()" .br .RI "返回类型 " .ti -1c .RI "void \fBsetText\fP (const QString &\fBtext\fP)" .br .RI "设置文本内容 " .ti -1c .RI "QString \fBtext\fP ()" .br .RI "text " .ti -1c .RI "void \fBsetContentsMargins\fP (int left, int top, int right, int bottom)" .br .RI "设置内容边距 " .ti -1c .RI "void \fBsetContentsMargins\fP (const QMargins &margins)" .br .RI "设置内容边距 " .ti -1c .RI "void \fBsetTipTime\fP (int my_time)" .br .RI "设置持续时间 " .ti -1c .RI "QHBoxLayout * \fBhBoxLayout\fP ()" .br .RI "获取kballontip的水平布局 " .ti -1c .RI "void \fBsetVariableIcon\fP (QIcon icon)" .br .RI "设置可变类型的icon " .ti -1c .RI "QPixmap \fBvariableIcon\fP ()" .br .RI "获取可变类型的icon " .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "void \fBpaintEvent\fP (QPaintEvent *event) override" .br .in -1c .SH "Detailed Description" .PP 消息提示框,支持五种样式 .PP \fBExamples\fP .in +1c \fBtestballontip/widget\&.h\fP\&. .SH "Author" .PP Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code\&.