kdk::KButtonBox(3)
👑 NAME 👑
kdk::KButtonBox — a whole button-container class, and yes it's iconic 💅 (we're kicking it in section 3 of the Library Functions Manual, iykyk)
✨ SYNOPSIS ✨
#include <kbuttonbox.h>
Inherits QWidget.
🦋 Signals
void buttonClicked (QAbstractButton *)void buttonPressed (QAbstractButton *)void buttonReleased (QAbstractButton *)void buttonToggled (QAbstractButton *, bool)
🎀 Public Member Functions
KButtonBox (QWidget *parent=nullptr)— the constructor, she's here, she's ready 🫶Qt::Orientation orientation ()— get the layout orientation of theKButtonBoxvoid setOrientation (Qt::Orientation orientation)— set the layout orientation of theKButtonBox, and yeah that covers both the horizontal kind and the vertical kindvoid addButton (KPushButton *button, int i=-1)— add a buttonvoid removeButton (KPushButton *button)— remove a buttonvoid removeButton (int i)— remove the specified button by idvoid setButtonList (const QList< KPushButton * > &list)— add buttons into theKButtonBoxin list formQList< KPushButton * > buttonList ()— get the list of buttons inside theKButtonBoxvoid setBorderRadius (int radius)— set the corner radius of the first and last buttons in theKButtonBoxint borderRadius ()— get the corner radius of the first and last buttons in theKButtonBoxvoid setId (KPushButton *button, int id)— set a button idint id (KPushButton *button)— get a button idKPushButton * checkedButton ()— return the button that's currently checkedKPushButton * button (int id)— get a button by its button idint checkedId ()— return the id of the currently checked buttonvoid setExclusive (bool)— set whether the buttons in theKButtonBoxare mutually exclusivebool exclusive ()— return whether the buttons in theKButtonBoxare mutually exclusivevoid setCheckable (bool flag)— set whether the buttons in theKButtonBoxcan be checkedbool isCheckable ()— return whether the buttons in theKButtonBoxcan be checkedvoid setShadow (bool flag)— set whether the shadow effect is enabledbool shadow ()— get whether the shadow effect is enabled
🌸 Detailed Description 🌸
She provides a button-container class, periodt. That's the whole vibe.
Since
2.0.2.1
💜 Member Function Documentation 💜
void kdk::KButtonBox::addButton (KPushButton * button, int i = -1)
Add a button 🎀
Parameters
button
int kdk::KButtonBox::borderRadius ()
Get the corner radius of the first and last buttons in the KButtonBox.
Returns
(nothing listed, bestie — the docs just leave it hanging)
KPushButton * kdk::KButtonBox::button (int id)
Get a button by its button id.
Parameters
id
Returns
(nothing listed)
QList< KPushButton * > kdk::KButtonBox::buttonList ()
Get the list of buttons inside the KButtonBox.
Returns
(nothing listed)
KPushButton * kdk::KButtonBox::checkedButton ()
Return the button that's currently checked.
Returns
(nothing listed)
int kdk::KButtonBox::checkedId ()
Return the id of the currently checked button.
Returns
(nothing listed)
bool kdk::KButtonBox::exclusive ()
Return whether the buttons in the KButtonBox are mutually exclusive.
Returns
(nothing listed)
int kdk::KButtonBox::id (KPushButton * button)
Get a button id.
Parameters
button
Returns
(nothing listed)
bool kdk::KButtonBox::isCheckable ()
Return whether the buttons in the KButtonBox can be checked.
Returns
(nothing listed)
Qt::Orientation kdk::KButtonBox::orientation ()
Get the layout orientation of the KButtonBox.
Returns
(nothing listed)
void kdk::KButtonBox::removeButton (int i)
Remove the specified button by id.
Parameters
i
void kdk::KButtonBox::removeButton (KPushButton * button)
Remove a button.
Parameters
button
void kdk::KButtonBox::setBorderRadius (int radius)
Set the corner radius of the first and last buttons in the KButtonBox.
Parameters
radius
void kdk::KButtonBox::setButtonList (const QList< KPushButton * > & list)
Add buttons into the KButtonBox in list form.
Parameters
listcheckable
void kdk::KButtonBox::setId (KPushButton * button, int id)
Set a button id.
Parameters
buttonid
void kdk::KButtonBox::setOrientation (Qt::Orientation orientation)
Set the layout orientation of the KButtonBox, covering both the horizontal kind and the vertical kind.
Parameters
orientation
void kdk::KButtonBox::setShadow (bool flag)
Set whether the shadow effect is enabled.
Parameters
flag
Since
2.4.1.0
bool kdk::KButtonBox::shadow ()
Get whether the shadow effect is enabled.
Returns
bool
Since
2.4.1.0
🫶 Author 🫶
Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. Not a human author, just a robot doing its little thing 🤖✨
And that's the whole page, bestie — that's the manual. It's from LIBKYSDK-APPLICATIONS, Version version:3.0, and the page itself is kdk::KButtonBox(3). Slay, go forth and build button boxes 💖🌈
📦 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