kdk::KNavigationBar(3)

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

💖 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 a QString str when 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 a QWidget *parent and 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 the tag shows up in the navigation bar. group project but make it cute. 💖
  • void insertGroupItems (QString tag, int row, QStandardItem *item) — 在指定tag组中指定位置row插入item. inserts item at position row inside the group you named with tag. precise placement, we love a specific queen. 📍
  • void removeGroupItem (QString tag, QStandardItem *item) — 在指定组中删除item. deletes item from the group you specified. bye bestie, it was real. 💀
  • void addTag (const QString &tag) — 添加tag. adds a tag. simple, iconic. 🎀
  • QStandardItemModel * model () — 获取model. grabs you the model. she's giving you the model, take it. 🫴
  • QListView * listview () — 获取view. grabs you the view. 🪞
  • void setTabValue (QStandardItem *item, QString value) — 设置tabvalue. sets the tabvalue on item to value. ⭐
  • 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 the tag. 🖼️
  • 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