kdk::KBallonTip(3)
💖 kdk::KBallonTip — like, the manual page for it (3) 💖
okay bestie sit DOWN because we're doing kdk::KBallonTip(3) from the Library Functions Manual and it's genuinely so cute. it's a message popup, it comes in five styles, and it inherits QWidget. that's the whole vibe. let's go 🎀
✨ NAME ✨
kdk::KBallonTip — 消息提示框,支持五种样式 (a lil message balloon tip, with five styles to choose from, no cap 🎈)
🌸 SYNOPSIS 🌸
#include <kballontip.h>
Inherits QWidget. yes she's a widget, she's got main character energy 💅
🫶 Public Member Functions
KBallonTip (QWidget *parent=nullptr)— the classic no-argument-ish constructor,parentdefaults tonullptr.KBallonTip (const QString &content, const TipType &type, QWidget *parent=nullptr)— the deluxe one, you hand her thecontent, thetype, and optionally aparent(againnullptrby default).void showInfo ()— 显示时间完毕后消失 — she pops up, and once the display time is done she just… dips. gone. poof ✨void setTipType (const TipType &type)— 设置类型 — set the type, bestie.TipType tipType ()— 返回类型 — hands the type back to you.void setText (const QString &text)— 设置文本内容 — set the text content, aka what she's actually saying.QString text ()—text— yeah, this one just gives you thetext.void setContentsMargins (int left, int top, int right, int bottom)— 设置内容边距 — set those content margins, one number per side.void setContentsMargins (const QMargins &margins)— 设置内容边距 — same thing but you pass a wholeQMarginsinstead, iconic.void setTipTime (int my_time)— 设置持续时间 — set how long she sticks around (my_time, cute name, love that).QHBoxLayout * hBoxLayout ()— 获取kballontip的水平布局 — grab kballontip's horizontal layout, pointer and all.void setVariableIcon (QIcon icon)— 设置可变类型的icon — set the icon for the variable type.QPixmap variableIcon ()— 获取可变类型的icon — get that variable-type icon back as aQPixmap.
🧚 Protected Member Functions
void paintEvent (QPaintEvent *event) override— the overridden paint event, doing her lil painting thing behind the scenes 🎨
💜 Detailed Description 💜
消息提示框,支持五种样式 — it's a message balloon tip, and she supports five different styles. five!! a whole range. the versatility is unmatched honestly 👑
🌈 Examples
testballontip/widget.h. go look at it, it's right there, it's giving reference material 📚
⭐ Author ⭐
Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. so technically not a human author, but the machine ate and left no crumbs fr fr 🤖💅
and that's the whole page, bestie!! 🫶 this was LIBKYSDK-APPLICATIONS, Version version:3.0 — shoutout to the source and version for making it all possible. mwah, bye, go build something cute with your balloon tips 🎀🦋💖
📦 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