kdk::KIconBar(3)

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

✨ NAME ✨

kdk::KIconBar — the icon-and-title combo widget, aka 图标和标题组合控件 💖

This is a Library Functions Manual page, bestie, so buckle up — it's giving "cute little widget that holds your icon and your label together and looks iconic doing it". 👑


🌸 SYNOPSIS 🌸

#include <kiconbar.h>

Inherits QFrame. Yes, it's a frame, it's got a whole lineage, we love a family tree. 🌳

🎀 Signals

  • void doubleClick () — double-click and it emits the doubleClick signal, so the parent widget can hook up whatever slot it wants. 双击会发出双击信号,父widget可以绑定相应槽函数 — so like, you double tap, it screams into the void, your parent catches it. Fr fr. 🫶

💅 Public Member Functions

  • KIconBar (QWidget *parent=nullptr) — constructor number one, and parent defaults to nullptr, so it's lowkey independent if you want it to be.
  • KIconBar (const QString &iconName, const QString &text, QWidget *parent=nullptr) — constructor number two, this one comes pre-loaded with an iconName and some text, plus the same parent=nullptr situation. Main character energy from the jump. ✨
  • void setIcon (const QString &iconName) — sets the icon, 设置图标, by name.
  • void setIcon (const QIcon &icon) — sets the icon, 设置图标, with an actual QIcon this time. Two ways to do the same slay. 🦋
  • void setWidgetName (const QString &widgetName) — sets the title, 设置标题.
  • QLabel * nameLabel () — hands you the title label, 获取标题label. It's a QLabel *, go wild but not too wild.
  • QLabel * iconLabel () — hands you the icon label, 获取图标label. Also a QLabel *. Grab it, love it, don't break it. 🙈

🧚 Protected Member Functions

These ones are for the framework's eyes, not yours — no cap.

  • void mouseDoubleClickEvent (QMouseEvent *event)
  • void resizeEvent (QResizeEvent *event)
  • QSize sizeHint () const override

💜 Detailed Description 💜

图标和标题组合控件 — it's a combined icon-and-title widget. That's it, that's the whole thing, and honestly? Ate. 🔥

⭐ Since

1.0.0 — it's been here since the very beginning, an OG.


👑 Author

Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. Not a human, not a vibe curator, just Doxygen doing its little robot thing. 🤖💀


okay that's the whole page bestie, you're officially fluent in kdk::KIconBar 💅

Source: LIBKYSDK-APPLICATIONS, version version:3.0. That's from the footer of this very page, so go forth and build cute little icon bars, and remember — the docs said it, not me. 🎀✨

📦 where this page comes from