kdk::KProgressBar(3)
💅 NAME 💅
kdk::KProgressBar — it's a progress bar bestie, and it flexes three whole states 💖 (that's 进度条,支持三种状态显示 for the multilingual girlies)
This page lives in the Library Functions Manual, section 3, and yes it's giving very much "library call" energy.
✨ SYNOPSIS ✨
okay so first things first, you gotta pull it in:
#include <kprogressbar.h>
Also: this baby inherits QProgressBar. She's got family. She's not doing this alone. 👑
🦋 Public Member Functions 🦋
KProgressBar (QWidget *parent)— the constructor, she needs aparentwidget to hang out with.ProgressBarState state ()— get the state (获取状态). lowkey just asks her how she's feeling.void setState (ProgressBarState state)— set the state (设置状态). tell her how to feel.QString text () const override— get the text (获取文本). anoverride, so she's doing her own version of what the parent does. main character behavior fr.void setOrientation (Qt::Orientation)— set the orientation (设置方向). horizontal? vertical? she can do both, she contains multitudes.void setBodyWidth (int width)— set the width of the progress bar (设置进度条宽度). give her awidth, she'll serve a silhouette.void setGradationColor (QColor color1, QColor color2)— set the gradient colors for the start and end positions (设置首尾位置的渐变颜色). two colors,color1andcolor2, one glorious fade. 🌈void setBackgroundColor (QColor color)— set the background color (设置背景色). the canvas behind the magic.void setFillColor (QColor color)— set the fill color (设置填充色). the actual progress-y part.void setGradation (bool flag)— whether to enable the custom gradient colors (是否启用自定义渐变色).flagon or off, your call.bool gradation ()— get whether the custom gradient colors are enabled (获取是否启用自定义渐变色).void setAnimation (bool flag)— whether to enable animation (是否启用动画). she can move, she can groove.bool animation ()— get whether animation is enabled (获取是否启用动画).
🎀 Protected Member Functions 🎀
these are the behind-the-scenes girlies, not for just anyone to call:
void paintEvent (QPaintEvent *event) override— anoverride, so she's taking over the drawing herself. iconic.QSize sizeHint () const— her opinion on how big she'd like to be. respect it.
🌸 Detailed Description 🌸
进度条,支持三种状态显示 — a progress bar, and she supports three states of display. that's the whole vibe. 💜
🍓 Examples 🍓
there's a real live example out there, go look at:
testprogressbar/widget.h
go on, peek, it's right there. iykyk.
🫶 Author 🫶
Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. — yeah, no human wrote this, Doxygen did, and honestly? it ate. 💅
okay that's the whole page bestie!! ✨ quick sign-off so you know exactly which version you're reading: this came from LIBKYSDK-APPLICATIONS, at Version version:3.0, and the footer tags it as kdk::KProgressBar(3). now go make something with a really pretty progress bar, you've got this 💖🦋🎀
📦 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