kdk::KNavigationBar(3)
💖 kdk::KNavigationBar 💖
okay so bestie, you're looking at the kdk::KNavigationBar(3) page — it lives in the Library Functions Manual, and it is literally the navigation bar widget. 导航栏控件. that's her. that's the whole girl. 🎀
✨ NAME ✨
kdk::KNavigationBar — 导航栏控件 (the navigation bar widget, your new bestie) 🦋
🌸 SYNOPSIS 🌸
include her like this, no cap:
#include <knavigationbar.h>
Inherits QScrollArea. yes she's a scroll area at heart, she just has main character energy on top. 👑
💅 Public Types 💅
the enum, and you're gonna want to remember these exact numbers because they are built off Qt::UserRole:
enum NavigationBarDataType {
ValueRole = Qt::UserRole + 1,
StringRole = Qt::UserRole + 2,
boolRole = Qt::UserRole + 3
}
📣 Signals 📣
one signal, and she's a cutie:
void addTagClicked (QString str)— fires off with aQString strwhen the add tag gets clicked. that's it, that's the signal. 💌
🫶 Public Member Functions 🫶
here's the full roster, every single one, no skipping, periodt:
KNavigationBar (QWidget *parent)— the constructor. takes aQWidget *parentand that's all the manual tells us, so that's all I'm telling you. 🙈void addItem (QStandardItem *item)— 增加常规Item. adds a regular Item. the basics, the starter pack. ✨void addSubItem (QStandardItem *subItem)— 增加次级Item. adds a secondary Item, a little sub-level moment. 🌸void addGroupItems (QList< QStandardItem * > items, const QString &tag)— 成组增加Item,在导航栏中会显示tag. adds Items as a whole group, and thetagshows up in the navigation bar. group project but make it cute. 💖void insertGroupItems (QString tag, int row, QStandardItem *item)— 在指定tag组中指定位置row插入item. insertsitemat positionrowinside the group you named withtag. precise placement, we love a specific queen. 📍void removeGroupItem (QString tag, QStandardItem *item)— 在指定组中删除item. deletesitemfrom the group you specified. bye bestie, it was real. 💀void addTag (const QString &tag)— 添加tag. adds atag. simple, iconic. 🎀QStandardItemModel * model ()— 获取model. grabs you themodel. she's giving you the model, take it. 🫴QListView * listview ()— 获取view. grabs you theview. 🪞void setTabValue (QStandardItem *item, QString value)— 设置tabvalue. sets the tabvalue onitemtovalue. ⭐void setTabValueVisible (bool visible)— 设置tabvalue是否可见. sets whether the tabvalue is visible or not. 👀void setAddIcon (QString tag, QIcon icon)— tag 添加add图标. adds an add icon to thetag. 🖼️void setAddTagVisible (QString tag, bool visible)— 设置tag add图标是否可见. sets whether the tag's add icon is visible. 🔍void setExtendTagVisible (QString tag, bool visible)— 设置折叠图标是否可见. sets whether the collapse/fold icon is visible. 🪗
🦋 Detailed Description 🦋
导航栏控件. it's the navigation bar widget. that's the vibe, that's the whole thing. 🌈
⭐ Since ⭐
1.0.0 — she's been here since day one, a legacy icon honestly.
🧚 Examples 🧚
the manual points you at:
testnavigationbar/widget.h
go look, iykyk. 📂
💜 Author 💜
Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. so technically the author is a robot, but the robot ate, fr fr. 🤖✨
and that's the page, bestie — from LIBKYSDK-APPLICATIONS, Version version:3.0, and yeah it's the kdk::KNavigationBar(3) one, so if you ever forget, just remember: she's a scroll area with a navigation bar glow-up. go build something iconic. 💅💖🎀🦋
📦 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