kdk(3)
🌸 NAME 🌸
kdk — 设置控件属性 (setting widget attributes) 🎀
✨ SYNOPSIS ✨
🎀 Classes 🎀
okay bestie, this is the lineup, and it is long. buckle up 💅
class AccessInfoHelperclass KAboutDialog— the about dialog 💬 and she serves two looks: one with no specific blurb, and one that does have a specific blurb.class KAddButtonclass KAddFileButton— the button that lets you pick a file 📁class KArrowTabBar— a tab bar that can show arrows ➡️class KBackgroundGroup— hands you a container for holding widgets 🫙class KBadge— the little notification bubble 🔔class KBallonTip— a message tip box, and it comes in five styles 🎈class KBaseFrameclass KBorderButton— button, but with a border ✨class KBorderlessButton— button, but no border, so minimal of her 🦋class KBreadCrumb— the breadcrumb widget 🍞class KBubbleWidget— gives you a window with a little triangle on it 🔺class KButtonBox— a container that's all about buttons 🎛️class KClockTimerclass KColorButton— a button for setting colour and style, made to fit all sorts of different scenarios 🎨class KColorComboBox— colour picker box 🌈class KComboBoxFrameclass KComboBoxWidgetclass KCommentPanel— shows you the full deets on a user's comment 💬class KCrumb— breadcrumb widget 🍞class KCustomDateEditclass KDialog— inherits fromQDialog; supports responsive theme-background switching and icon-theme switching, and her title colour reacts to whether the window is active or not 👑class KDirTabBar— the directory-level widget 🗂️class KDragWidget— drag a file or a folder and she'll recognise it and grab the path for you 📎class KFileWidget— TheKFileWidgetclass.class KFlowLayoutclass KHLineFrameclass KIconBar— icon plus title, combined into one widget 🖼️class KInputDialog— input dialog, and the interface is exactly the same asQInputDialog. ✍️class KIntroWidgetclass KItemWidgetclass KLabel— inheritsQLabel🏷️class KLineEditclass KLineEditFrameclass KListView— team up withKListviewdelegateand you get one image plus two lines of text; if there's only one line of text, the icon gets centred 💫class KListViewDelegate— team up withKListviewand you get one image plus two lines of text; if there's only one line of text, the icon gets centred 💫class KListWidgetclass KLoopPlayPageclass KLunarCalendarInfoclass KLunarDateEditclass KMenuButton— dropdown menu button 📜class KMessageBox— inherits fromKDialog, and gives you a dialog where you can customise the buttons and the icon, a lot likeQMessageBox💭class KMiniCalendarItemclass KMiniCalendarWidgetclass KNativeTabbarclass KNavigationBar— the navigation bar widget 🧭class KNavigationTrailclass KPasswordEdit— password input box, inherits fromQLineEdit, and supports showing three different states 🔐class KPixmapContainer— adds a notification bubble to the top-right corner of a given pixmap, styled like the message dot on a WeChat avatar 💬class KPressButton— a press button, and you can set a loading state on her depending on the situation ⏳class KProgressBar— progress bar, supports showing three states 📊class KProgressCircle— shows progress as a ring, supports three states ⭕class KProgressDialog— progress dialog, shows you the current progress live in real time 🌀class KProgressLabelclass KPushButton— she's a whole package:- provides a semi-transparent effect ✨
- you can set the button corner radius, the background colour, and whether the icon follows the system highlight 🎛️
- you can set the button type — normal type, or circular (you have to set the size to make it a perfect circle) — everything else is the same as
QPushButton💅
class KPushButtonFrameclass KRadioButtonFrameclass KSearchLineEdit— search input box, can search for items matching your condition 🔍class KSecurityLevelBar— the password security-level bar, supports three security levels 🛡️class KSecurityQuestionDialog— inherits fromKDialog, ❓class KSettingGroupclass KSlider— a slider that supports three styles:- non-step relationship: the step is 1, and you can click and drag at any position 🖱️
- step relationship: the step is a fixed value, and you click and drag according to that step value 📏
- node relationship: the step is the node interval, and you click and drag according to that node interval 🔘
class KSliderFrameclass KSwitchButton— indicates two states, on / off 🔛class KSwitchButtonFrameclass KTabBar— supports three styles 🗂️class KTableHeaderViewclass KTableModelclass KTableViewclass KTag— gives you tags in four styles, and she responds to system theme-colour changes 🏷️class KTextEdit— inheritsQTextEdit📝class KTextEditorclass KTitleWindowclass KToolBarclass KToolButton— gives you a quick-access button; showing text is not supported yet 🚫class KTranslucentFloor— gives you a semi-transparent base plate you can lay out on like a base window 🪟class KUninstallDialog— uninstall dialog; this prompt may pop up when the user uninstalls 🗑️class KVLineFrameclass KWidget— inherits fromQWidget; supports responsive theme-background switching, icon-theme switching, and title colour that reacts to the window's active state; her content area is split into asideregion and abaseregion 🧩class KWidgetUtilsclass KWindowButtonBar— the whole squad: the three window buttons plus the menu button 🪟class Parmscontroller— TheParmscontrollerclass.class UkuiStyleHelper— fixes the double-title-bar problem in awaylandenvironment 🩹class WindowManager— usually used for doing stuff to windows 🪟class XAtomHelper
🧵 Typedefs 🧵
using WindowId = QVariant— that's it, that's the typedef 💫
🌈 Enumerations 🌈
enum TipType { Nothing, Normal, Info, Warning, Error, Variable }— supports five styles 💖enum KBreadCrumbType { FlatBreadCrumb, CubeBreadCrumb }—KBreadCrumbType, and she includes two types 🍞enum TailDirection { TopDirection, LeftDirection, BottomDirection, RightDirection, None }— says which way the bubble's tail points 🧭enum TailLocation { LeftLocation, MiddleLocation, RightLocation }— says where on the bubble the tail sits 📍enum StarLevel { LevelZero = 0, LevelOne, LevelTwo, LevelThree, LevelFour, LevelFive }— six comment levels, available ⭐enum KCrumbType { FlatBreadCrumb, CubeBreadCrumb }—KCrumbType, and she includes two types 🍞enum ViewType { IconView, ListView }enum KLabelType { NormalType, DataType, CircleType }enum KNativeTabbarStyle { SegmentDark, SegmentLight, Sliding }enum ButtonPosition { LeftPosition, LeftOrRight, RightPosition }enum LoginState { Ordinary, LoginSuccess, LoginFailed }— supports three states 🔐enum ProgressBarState { NormalProgress, FailedProgress, SuccessProgress }— supports three states 📊enum BarType { ScrollBar, NothingBar, NormalBar, SpeedBar }— supports three styles 🎚️enum SecurityLevel { Low, Medium, High }— split into three security levels 🛡️enum KSliderType { SmoothSlider, StepSlider, NodeSlider, SingleSelectSlider }enum KTabBarStyle { SegmentDark, SegmentLight, Sliding }— supports three styles 🗂️enum TagStyle { HighlightTag, BoderTag, BaseBoderTag, GrayTag, IconTag }— supports four tag styles 🏷️enum KToolButtonType { Flat, SemiFlat, Background, Frameless }— supports three styles, and showing text isn't supported yet 🚫enum LayoutType { VerticalType, HorizontalType, MixedType }— supports switching between three structural layouts 🔀enum MaximumButtonState { Maximum, Restore }— the maximise button offers two state responses 🪟
🦋 Functions 🦋
template<typename T > QString combineAccessibleName (T *obj, QString widgetName, const QString &pluginName, const QString &extend=QString())
template<typename T > QString combineAccessibleDescription (T *obj, const QString &widgetName)
template<typename T > AccessInfoHelper< T > getHandle (T *widget)
💖 Detailed Description 💖
设置控件属性 — setting widget attributes, that's the whole gig ✨
高分屏和合成器接口 — the high-DPI screen and compositor interface 🖥️
创建一个带 QPushButton 的 Frame — create a Frame with a QPushButton in it 🎛️
⭐ Since ⭐
2.5.2.01.0.0
👑 Author 👑
Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. 🤖
and that's a wrap bestie 🫶 this whole thing came to you from LIBKYSDK-APPLICATIONS, Version version:3.0, and it's the kdk(3) page — go forth and build iconic widgets, no cap 💅🌸✨
📦 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