kdk::KIconBar(3)
✨ 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, andparentdefaults tonullptr, 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 aniconNameand sometext, plus the sameparent=nullptrsituation. 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 actualQIconthis 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 aQLabel *, go wild but not too wild.QLabel * iconLabel ()— hands you the icon label, 获取图标label. Also aQLabel *. 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
- 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