kdk::KInputDialog(3)
✨ kdk::KInputDialog(3) ✨
okay bestie, sit down, hydrate, and let me tell you about this little icon 💖 this page lives in the Library Functions Manual, and the star of the show is kdk::KInputDialog — an input dialog whose interface is literally identical to QInputDialog. no remixing, no plot twist, same everything. periodt. 💅
🌸 NAME 🌸
kdk::KInputDialog — it's the input dialog, bestie 🎀 and its interface is exactly the same as QInputDialog. that's the whole vibe.
🦋 SYNOPSIS 🦋
#include <kinputdialog.h>
Inherits kdk::KDialog.
so yeah, it's a kdk::KDialog at heart — everything the parent can do, it can do too. 🫶
👑 Public Types
enum InputDialogOption { NoButtons = 0x00000001, UseListViewForComboBoxItems = 0x00000002, UsePlainTextEditForTextInput = 0x00000004 }— the little behavior switches you can flip on this thing, and yes those hex values are exact, don't touch them 💅enum InputMode { TextInput, IntInput, DoubleInput }— the three flavors of input this dialog can be in. text, int, or double. pick your fighter. ⭐
📣 Signals
these are the little "hey, something happened!!" notifications it sends out 📢
void textValueChanged (const QString &text)void textValueSelected (const QString &text)void intValueChanged (int value)void intValueSelected (int value)void doubleValueChanged (double value)void doubleValueSelected (double value)
changed = it's moving, selected = it's committed. iykyk. 💖
🧚 Public Member Functions
KInputDialog (QWidget *parent=nullptr)— constructor, duh. give it a parent or let it be free and parentless (nullptr) 🦋void setInputMode (InputMode mode)— sets the input mode ✨InputMode inputMode () const— hands you back the current input modevoid setLabelText (const QString &text)— sets the prompt / label text so the user knows what you're asking for 💬QString labelText () const— gives you the label text backvoid setOption (InputDialogOption option, bool on=true)— flips anInputDialogOptionon (or off if you passfalse)bool testOption (InputDialogOption option) const— tells you whether that option is currently set. true/false moment. 💀void setOptions (InputDialogOptions options)— sets the whole batch of options at onceInputDialogOptions options () const— returns the whole batch of optionsvoid setTextValue (const QString &text)— sets the text valueQString textValue () const— gets the current text valuevoid setTextEchoMode (QLineEdit::EchoMode mode)— sets the echo mode used for storing the text value, i.e.QLineEdit::EchoMode🙈 (yes, password-hiding mode is one of them, go off)QLineEdit::EchoMode textEchoMode () const— returns the echo mode used for storing the text valuevoid setComboBoxEditable (bool editable)— sets whether the combo box used in the input dialog is editable ✏️bool isComboBoxEditable () const— tells you whether that combo box is editablevoid setComboBoxItems (const QStringList &items)— sets the items used in the input dialog's combo box 🎀QStringList comboBoxItems () const— returns the items used in the input dialog's combo boxvoid setIntValue (int value)— sets theint-type valueint intValue () const— gets theint-type valuevoid setIntMinimum (int min)— sets theint-type minimum valueint intMinimum () const— gets theint-type minimum valuevoid setIntMaximum (int max)— sets theint-type maximum valueint intMaximum () const— gets theint-type maximum valuevoid setIntRange (int min, int max)— sets theint-type value range, min and max in one go, efficiency queen 👑void setIntStep (int step)— sets the step sizeint intStep () const— gets theint-type step sizevoid setDoubleValue (double value)— sets thedouble-type valuedouble doubleValue () const— gets thedouble-type valuevoid setDoubleMinimum (double min)— sets thedouble-type minimum valuedouble doubleMinimum () const— gets thedouble-type minimum valuevoid setDoubleMaximum (double max)— sets thedouble-type maximum valuedouble doubleMaximum () const— gets thedouble-type maximum valuevoid setDoubleRange (double min, double max)— sets thedouble-type value range 🌈void setDoubleDecimals (int decimals)— sets the precision of the double spin box, measured in decimal places 🔢int doubleDecimals () const— gets the precision of the double spin boxvoid setOkButtonText (const QString &text)— sets the text on the OK button ✅QString okButtonText () const— gets the text on the OK buttonvoid setCancelButtonText (const QString &text)— sets the text on the cancel buttonQString cancelButtonText () const— gets the text on the cancel buttonvoid open (QObject *receiver, const char *member)— shows the dialog as a window-modal dialog and returns immediately. yes bestie, immediately — it does not block, it does not wait for you, it's booked and busy 💅QSize minimumSizeHint () const override— gets the widget's recommended minimum sizeQSize sizeHint () const override— gets the widget's recommended size 📐void setVisible (bool visible) override— sets whether the widget is visible 👀QString placeholderText () const— gets the placeholder textvoid setPlaceholderText (const QString &)— sets the placeholder text 💭void setDoubleStep (double step)— sets the step size for thedoubletype. (the source spells itdoubeland honestly? we respect the typo, it's iconic 💀)double doubleStep () const— gets the step size for thedoubletypevoid done (int result) override— done. closes the dialog and reportsresult. that's it, that's the function. 🫡
🌈 Public Member Functions inherited from kdk::KDialog
KDialog (QWidget *parent=nullptr)— the parent constructor, with an optional parentvoid setWindowIcon (const QIcon &icon)— sets the dialog icon 🖼️void setWindowIcon (const QString &iconName)— also sets the dialog icon, but by name this timevoid setWindowTitle (const QString &)— sets the dialog's titleQPushButton * maximumButton ()— gets the maximize buttonQPushButton * minimumButton ()— gets the minimize buttonQPushButton * closeButton ()— gets the close buttonKMenuButton * menuButton ()— gets the dropdown menu buttonQWidget * mainWidget ()— gets the main content area widgetKWindowButtonBar * windowButtonBar ()—windowButtonBarKIconBar * iconBar ()—iconBar
⭐ Static Public Member Functions
these are the drive-thru versions — call them without making an object first, and they'll pop the dialog for you 🍓
static QString getText (QWidget *parent, const QString &label, QLineEdit::EchoMode echo=QLineEdit::Normal, const QString &text=QString(), bool *ok=nullptr, Qt::WindowFlags flags=Qt::WindowFlags(), Qt::InputMethodHints inputMethodHints=Qt::ImhNone)— static convenience function that grabs a single line of string input from the user ✍️static QString getMultiLineText (QWidget *parent, const QString &label, const QString &text=QString(), bool *ok=nullptr, Qt::WindowFlags flags=Qt::WindowFlags(), Qt::InputMethodHints inputMethodHints=Qt::ImhNone)— static convenience function that grabs multiple lines of string input from the user 📝static QString getItem (QWidget *parent, const QString &label, const QStringList &items, int current=0, bool editable=true, bool *ok=nullptr, Qt::WindowFlags flags=Qt::WindowFlags(), Qt::InputMethodHints inputMethodHints=Qt::ImhNone)— static convenience function that lets the user pick one item out of a list of strings 🎯static int getInt (QWidget *parent, const QString &label, int value=0, int minValue=-2147483647, int maxValue=2147483647, int step=1, bool *ok=nullptr, Qt::WindowFlags flags=Qt::WindowFlags())— static convenience function that grabs an integer from the user 🔢 (look at those defaults,-2147483647to2147483647, generous queen)static double getDouble (QWidget *parent, const QString &label, double value=0, double minValue=-2147483647, double maxValue=2147483647, int decimals=1, bool *ok=nullptr, Qt::WindowFlags flags=Qt::WindowFlags())— static convenience function that grabs a floating point number from the user 🌊
🫶 Protected Member Functions
void changeTheme ()— changes the theme 🎨
💜 Protected Member Functions inherited from kdk::KDialog
bool eventFilter (QObject *target, QEvent *event) overridevoid changeTheme ()void changeIconStyle ()QBoxLayout * mainLayout ()
🌟 DETAILED DESCRIPTION 🌟
it's the input dialog 💖 and its interface is the same as QInputDialog. that's it, that's the description, and it ate. 👑
⏳ Since ⏳
1.0.0 — been here since the beginning, a true veteran 🎀
✍️ Author ✍️
Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. not a human author, just doxygen doing its little robot thing 🤖✨
and that's the whole page bestie!! thanks for reading all the way to the bottom, you're the real main character 💅 the source is LIBKYSDK-APPLICATIONS, it's Version version:3.0, and that's the kdk::KInputDialog(3) page — go forth and pop some dialogs, 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