Scroll to navigation

kdk::KPixmapContainer(3) Library Functions Manual kdk::KPixmapContainer(3)

NAME

kdk::KPixmapContainer - 为指定的pixmap添加右上角消息提示气泡,样式类似微信头像的消息提示

SYNOPSIS

#include <kpixmapcontainer.h>

Inherits QWidget.

Public Member Functions


KPixmapContainer (QWidget *parent=nullptr)
int value () const
获取值 void setValue (int value)
设置值 void setValueVisiable (bool flag)
设置值是否可见 bool isValueVisiable () const
获取值是否可见 void setPixmap (const QPixmap &pixmap)
设置pixmap QPixmap pixmap () const
获取pixmap void clearValue ()
清除值 QColor color ()
返回背景色 void setColor (const QColor &color)
设置背景色 int fontSize ()
返回字体大小 void setFontSize (int size)
设置字体大小

Protected Member Functions


void paintEvent (QPaintEvent *event)

Detailed Description

为指定的pixmap添加右上角消息提示气泡,样式类似微信头像的消息提示

Since

1.0.0

Examples
testbadge/widget.h.

Author

Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code.

Version version:3.0 LIBKYSDK-APPLICATIONS