kdk::KProgressDialog(3)

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

💅 kdk::KProgressDialog — section 3 of the Library Functions Manual 💅

okay so bestie, sit down, hydrate, because this one is a progress dialog and honestly? iconic behavior. she shows you the current progress in real time. not later, not "eventually", not "trust me bro" — real time. 👑


✨ NAME ✨

kdk::KProgressDialog — the progress dialog that displays the current progress as it happens, live, right in front of you. 🎀


🦋 SYNOPSIS 🦋

#include <kprogressdialog.h>

and lowkey the most important line here: she Inherits kdk::KDialog. so everything KDialog can do? she can do too. family tree slay, no cap. 🌈

💖 Public Slots 💖

  • void cancel () — cancels the progress bar. bye bye bestie 👋
  • void reset () — resets the progress bar back to square one, fresh start energy ✨
  • void setMaximum (int maximum) — sets the max value
  • void setMinimum (int minimum) — sets the min value
  • void setRange (int minimum, int maximum) — sets the whole range at once, efficient queen
  • void setValue (int progress) — sets the current value
  • void setLabelText (const QString &text) — sets what the label says
  • void setCancelButtonText (const QString &text) — sets what the cancel button says
  • void setSubContent (const QString &text) — sets the sub content

🌸 Signals 🌸

  • void canceled () — fires off when the thing gets canceled, the drama signal 💀

🎀 Public Member Functions 🎀

  • KProgressDialog (QWidget *parent=nullptr)
  • KProgressDialog (const QString &labelText, const QString &cancelButtonText='cancel', int minimum=0, int maximum=100, QWidget *parent=nullptr)
  • void setLabel (QLabel *label) — sets the label text
  • void setCancelButton (QPushButton *button) — sets the cancel button
  • void setBar (QProgressBar *bar) — sets the progress bar
  • void setSuffix (const QString &suffix) — sets the suffix for the detail
  • void setSuffix (const QString &numerator, const QString &denominator)
  • void setSpeed (const float &speed)
  • void setShowDetail (bool flag) — sets whether the detail info shows at all
  • int minimum () const — returns the min value
  • int maximum () const — returns the max value
  • int value () const — returns the current value
  • QString labelText () const — returns the label text
  • void setAutoReset (bool reset) — sets auto reset
  • bool autoReset () const — returns whether auto reset is on
  • void setAutoClose (bool close) — sets whether the dialog auto closes itself
  • bool autoClose () const — returns whether the dialog auto closes itself
  • QProgressBar * progressBar () — grabs you the progress bar
  • void setBarType (const BarType &type)
  • void addButton (QPushButton *button)
  • void removeButton (QPushButton *button)
  • BarType myType ()

💜 Public Member Functions inherited from kdk::KDialog 💜

yes she got them from her parent. nepotism? maybe. useful? absolutely. 🫶
  • KDialog (QWidget *parent=nullptr)
  • void setWindowIcon (const QIcon &icon) — sets the dialog icon
  • void setWindowIcon (const QString &iconName) — sets the dialog icon (yes, again, this time by name ✨)
  • void setWindowTitle (const QString &) — sets the dialog's title name
  • QPushButton * maximumButton () — gets you the maximize button
  • QPushButton * minimumButton () — gets you the minimize button
  • QPushButton * closeButton () — gets you the close button
  • KMenuButton * menuButton () — gets you the dropdown menu button
  • QWidget * mainWidget () — gets you the main content area Widget
  • KWindowButtonBar * windowButtonBar () — it's the windowButtonBar, that's the whole note 💀
  • KIconBar * iconBar () — and this one's the iconBar. same vibe.

🔥 Protected Member Functions 🔥

  • void changeTheme ()

⭐ Protected Member Functions inherited from kdk::KDialog ⭐

  • bool eventFilter (QObject *target, QEvent *event) override
  • void changeTheme ()
  • void changeIconStyle ()
  • QBoxLayout * mainLayout ()

🌈 Detailed Description 🌈

it's a progress dialog, and it shows the current progress in real time. that's the whole personality and honestly? she ate. 💅

🧚 Examples 🧚

testprogressdialog/widget.cpp

👑 Author 👑

Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. so like, a robot wrote her bio. still slayed. 🤖✨


ngl if you made it this far you're basically a Unix main character now. go forth and show that progress. 🦋

and that's the whole page bestie — brought to you by LIBKYSDK-APPLICATIONS, Version version:3.0, kdk::KProgressDialog(3), periodt. 💖🎀💅

📦 where this page comes from