kdk::KBallonTip(3)

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

💖 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, parent defaults to nullptr.
  • KBallonTip (const QString &content, const TipType &type, QWidget *parent=nullptr) — the deluxe one, you hand her the content, the type, and optionally a parent (again nullptr by 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 the text.
  • 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 whole QMargins instead, 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 a QPixmap.

🧚 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