kdk::KPixmapContainer(3)

📦 version 3.0.1.2, in arch rolling, ubuntu resolute, ubuntu stonking

✨ 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 cap
  • void setValue(int value) — 设置值 — sets the value, periodt
  • void setValueVisiable(bool flag) — 设置值是否可见 — toggles whether the value is visible or not 🙈
  • bool isValueVisiable() const — 获取值是否可见 — tells you if the value is visible rn
  • void setPixmap(const QPixmap &pixmap) — 设置pixmap — drops in the pixmap 🖼️
  • QPixmap pixmap() const — 获取pixmap — gives you the pixmap back
  • void clearValue() — 清除值 — wipes the value clean 🧼
  • QColor color() — 返回背景色 — returns the background color 🎨
  • void setColor(const QColor &color) — 设置背景色 — sets the background color
  • int fontSize() — 返回字体大小 — returns the font size
  • void 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