FrameModule(3)
🎀 FrameModule(3) 🎀
okay bestie, welcome to FrameModule(3) — yes it lives in the Library Functions Manual 💖 this is a whole widget page and we're gonna get through it together, no skimming, no skipping, fr fr.
✨ NAME ✨
FrameModule — FrameModule
- 轮播图片控件 — it's the carousel image widget 🎠✨ (yes, that's literally what the line says, twice-ish, we love a mysterious icon)
🌸 SYNOPSIS 🌸
💅 Classes
class kdk::KWidget— inherits fromQWidget, and bestie it does a LOT: it responds to theme background switching, icon theme switching, its title color reacts to whether the window is active, and its content area is split into asidezone and abasezone. (original: 继承自QWidget,支持响应主题背景切换,图标主题切换,标题颜色响应窗口激活状态,内容区域分为side区和base区)
🔥 Functions
kdk::KWidget::KWidget (QWidget *parent=nullptr)void kdk::KWidget::setIcon (const QIcon &icon)— 设置窗体图标, aka sets the window icon 🖼️void kdk::KWidget::setIcon (const QString &iconName)— 设置窗体图标, the string-flavored one, same missionvoid kdk::KWidget::setWidgetName (const QString &widgetName)— 设置窗体名称, sets the window name 🏷️QWidget * kdk::KWidget::sideBar ()— 获取左边栏widget,通过setlayout添加自定义内容 — grab the left sidebar widget and drop your own stuff in viasetlayoutQWidget * kdk::KWidget::baseBar ()— 获取主内容区widget,通过setlayout添加自定义内容 — grab the main content-area widget and add custom content viasetlayoutKWindowButtonBar * kdk::KWidget::windowButtonBar ()— 获取窗口三联组合控件,以控制是否显示最大化、最小化按钮和下拉菜单按钮;也可增加自定义按钮 — grab the window's three-button combo control so you can decide whether maximize, minimize and dropdown-menu buttons show up, and you can add custom buttons too 👑KIconBar * kdk::KWidget::iconBar ()— 获取窗口标题、图标组合控件,以控制相关样式 — grab the window title + icon combo control to wrangle the related styles 🎀void kdk::KWidget::setLayoutType (LayoutType type)— 设置布局结构类型, sets the layout structure typevoid kdk::KWidget::setWindowFlags (Qt::WindowFlags type)— 设置窗口标志, sets the window flagsvoid kdk::KWidget::setWindowFlag (Qt::WindowType flag, bool on=true)— 设置窗口标志, sets a window flagvoid kdk::KWidget::setSidebarFollowMode (bool flag)— 设置sidebar是否遵循系统更改宽度, controls whether the sidebar follows system width changesbool kdk::KWidget::sidebarFollowMode ()— 返回sidebar是否遵循系统更改宽度, returns whether the sidebar follows system width changesbool kdk::KWidget::eventFilter (QObject *target, QEvent *event) overridevirtual void kdk::KWidget::changeIconStyle ()virtual void kdk::KWidget::changeTheme ()
🦋 DETAILED DESCRIPTION 🦋
轮播图片控件 — the carousel image widget, as established. 💫
and then, no cap, the page just hits us with this:
{
Since
2.5.2.0
2.0.2.1 {
2.5.2.0 {
not me staring at those stray braces 🙈 bestie I'm just the messenger, I copy what the manpage says, character for character. It's giving ancient scroll energy.
💜 FUNCTION DOCUMENTATION 💜
🫶 QWidget * kdk::KWidget::baseBar ()
获取主内容区widget,通过setlayout添加自定义内容 — gets you the main content-area widget, and you add custom content to it via setlayout.
Returns
返回主内容区widget — hands you back the main content-area widget.
🫶 KIconBar * kdk::KWidget::iconBar ()
获取窗口标题、图标组合控件,以控制相关样式 — gets you the window title + icon combo control so you can control the related styles.
Returns
返回窗口标题、图标组合控件 — hands you back the window title + icon combo control.
🫶 void kdk::KWidget::setIcon (const QIcon & icon)
设置窗体图标 — sets the window icon.
Parameters
- icon
🫶 void kdk::KWidget::setIcon (const QString & iconName)
设置窗体图标 — sets the window icon.
Parameters
- iconName — 直接指定系统目录中的图标名称,如
'kylin-music'— you just name an icon straight out of the system directory, like'kylin-music'🎵
🫶 void kdk::KWidget::setSidebarFollowMode (bool flag)
设置sidebar是否遵循系统更改宽度 — sets whether the sidebar follows system width changes.
Parameters
- flag
Since
1.2.0
🫶 void kdk::KWidget::setWidgetName (const QString & widgetName)
设置窗体名称 — sets the window name.
Parameters
- widgetName
🫶 void kdk::KWidget::setWindowFlag (Qt::WindowType flag, bool on = true)
设置窗口标志 — sets the window flag.
Parameters
- flag
- on
Since
1.2.0
🫶 void kdk::KWidget::setWindowFlags (Qt::WindowFlags type)
设置窗口标志 — sets the window flags.
Parameters
- type
Since
1.2.0
🫶 QWidget * kdk::KWidget::sideBar ()
获取左边栏widget,通过setlayout添加自定义内容 — gets you the left sidebar widget, and you add custom content to it via setlayout.
Returns
返回左边栏widget — hands you back the left sidebar widget.
🫶 bool kdk::KWidget::sidebarFollowMode ()
返回sidebar是否遵循系统更改宽度 — returns whether the sidebar follows system width changes.
Returns
(nothing listed here, bestie — the manpage leaves this one blank 🙈)
Since
1.2.0
🫶 KWindowButtonBar * kdk::KWidget::windowButtonBar ()
获取窗口三联组合控件,以控制是否显示最大化、最小化按钮和下拉菜单按钮;也可增加自定义按钮 — gets you the window's three-button combo control so you can control whether the maximize, minimize and dropdown-menu buttons are shown; you can also add custom buttons. 🔥
Returns
返回窗口三联组合控件 — hands you back the window's three-button combo control.
🌈 AUTHOR 🌈
Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. 💖 (Doxygen said it, not me.)
and that's the whole page, bestie, you ATE that read 👑💅 no cap.
LIBKYSDK-APPLICATIONS · Version version:3.0 · this was the FrameModule(3) page — mwah, closing the manual, drink some water, ily 🫶🌸✨
📦 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