kdk::KPixmapContainer(3)
✨ NAME ✨
kdk::KPixmapContainer — bestie, this one slaps a lil notification bubble in the top-right corner of whatever pixmap you give it 💅 the style is giving WeChat avatar message-badge energy, fr fr 🎀
🌸 SYNOPSIS 🌸
#include <kpixmapcontainer.h>
Inherits QWidget. yes queen, she's a widget 👑
🫶 Public Member Functions
KPixmapContainer(QWidget *parent=nullptr)— constructor moment, spins up the whole thing ✨int value() const— 获取值 — hands you back the value, no capvoid setValue(int value)— 设置值 — sets the value, periodtvoid setValueVisiable(bool flag)— 设置值是否可见 — toggles whether the value is visible or not 🙈bool isValueVisiable() const— 获取值是否可见 — tells you if the value is visible rnvoid setPixmap(const QPixmap &pixmap)— 设置pixmap — drops in the pixmap 🖼️QPixmap pixmap() const— 获取pixmap — gives you the pixmap backvoid clearValue()— 清除值 — wipes the value clean 🧼QColor color()— 返回背景色 — returns the background color 🎨void setColor(const QColor &color)— 设置背景色 — sets the background colorint fontSize()— 返回字体大小 — returns the font sizevoid setFontSize(int size)— 设置字体大小 — sets the font size 🔤
🦋 Protected Member Functions
void paintEvent(QPaintEvent *event)— the actual painting happens here, this is her main character moment 🎨✨
💖 Detailed Description 💖
kdk::KPixmapContainer 为指定的pixmap添加右上角消息提示气泡,样式类似微信头像的消息提示 — basically, you hand her a pixmap and she adds that little message-notification bubble up in the top-right corner, styled like the WeChat avatar badge. iconic behavior, honestly 🔥
⭐ Since
1.0.0 — she's been here since day one, a true veteran 💜
🎀 Examples
testbadge/widget.h. — go peek at this if you wanna see her in action 👀
👑 Author
Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. (not me writing poetry, it's the robots 🤖💖)
okay that's the whole page bestie, mwah 💋 this was LIBKYSDK-APPLICATIONS, Version version:3.0, dated kdk::KPixmapContainer(3) — go forth and bubble responsibly 🫶🌸
📦 where this page comes from
- arch rolling: libkysdk-applications 3.0.1.2-1 · BSD-3-Clause AND GPL-3.0-or-later AND LGPL-2.1-or-later AND LGPL-3.0-or-later AND MIT AND MulanPSL-2.0
- ubuntu resolute: libkysdk-applications-dev 3.0.1.1-1 · LGPL-3.0-or-later
- ubuntu stonking: libkysdk-applications-dev 3.0.1.2-1build2 · LGPL-3.0-or-later
- 💖 girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms