kdk::KFlowLayout(3)
💖 kdk::KFlowLayout 💖
okay bestie, gather round, because today we're learning about kdk::KFlowLayout — straight out of the kdk::KFlowLayout(3) page in the Library Functions Manual. it's a layout class, it flows, it's iconic, let's go 🦋
✨ NAME ✨
kdk::KFlowLayout — that's it, that's the name, no notes 💅
🌸 SYNOPSIS 🌸
she Inherits QLayout. family tree? immaculate. 👑
🎀 Public Member Functions 🎀
KFlowLayout (QWidget *parent, bool home=false, int margin=-1, int hSpacing=-1, int vSpacing=-1)— 创建一个父对象为parent,边距为margin,水平间距为hSpacing,垂直间距为vSpacing的布局。 (translation for the girlies: builds a layout whose parent is parent, whose margin is margin, whose horizontal spacing is hSpacing, and whose vertical spacing is vSpacing ✨)KFlowLayout (int margin=-1, int hSpacing=-1, int vSpacing=-1)— 创建一个边距为margin,水平间距为hSpacing,垂直间距为vSpacing的布局。 (aka: a layout with margin margin, horizontal spacing hSpacing, vertical spacing vSpacing 🌸)int horizontalSpacing () const— 水平间距 (the horizontal spacing, bestie)int verticalSpacing () const— 垂直间距 (the vertical spacing, obviously)
🧚 Protected Member Functions 🧚
these ones are lowkey the inner workings, not for just anyone to touch 🙈
void addItem (QLayoutItem *item) Q_DECL_OVERRIDEQt::Orientations expandingDirections () const Q_DECL_OVERRIDEbool hasHeightForWidth () const Q_DECL_OVERRIDEint heightForWidth (int) const Q_DECL_OVERRIDEint count () const Q_DECL_OVERRIDEQLayoutItem * itemAt (int index) const Q_DECL_OVERRIDEQSize minimumSize () const Q_DECL_OVERRIDEvoid setGeometry (const QRect &rect) Q_DECL_OVERRIDEQSize sizeHint () const Q_DECL_OVERRIDEQLayoutItem * takeAt (int index) Q_DECL_OVERRIDE
🍼 Constructor & Destructor Documentation 🍼
kdk::KFlowLayout::KFlowLayout (QWidget * parent, bool home = false, int margin = -1, int hSpacing = -1, int vSpacing = -1) [explicit]
创建一个父对象为parent,边距为margin,水平间距为hSpacing,垂直间距为vSpacing的布局。
(so: you get a layout with parent parent, margin margin, horizontal spacing hSpacing, vertical spacing vSpacing. she's explicit too, no sneaky implicit conversions here 😤)
💜 Parameters 💜
home— 是否首页布局 (is it the home page layout or not)margin— 边距 (margin)hSpacing— 水平间距 (horizontal spacing)vSpacing— 垂直间距 (vertical spacing)parent— (no description given, she's mysterious like that 🤫)
kdk::KFlowLayout::KFlowLayout (int margin = -1, int hSpacing = -1, int vSpacing = -1) [explicit]
创建一个边距为margin,水平间距为hSpacing,垂直间距为vSpacing的布局。
(same energy, minus the parent: margin margin, horizontal spacing hSpacing, vertical spacing vSpacing. also [explicit] ✨)
💜 Parameters 💜
margin— 边距 (margin)hSpacing— 水平间距 (horizontal spacing)vSpacing— 垂直间距 (vertical spacing)
⭐ Member Function Documentation ⭐
int kdk::KFlowLayout::horizontalSpacing () const
水平间距
(the horizontal spacing. that's the whole thing. short queen 👑)
💜 Parameters 💜
- 无 — literally none, she takes no parameters 🫶
int kdk::KFlowLayout::verticalSpacing () const
垂直间距
(the vertical spacing. equally brief, equally slay 💅)
💜 Parameters 💜
- 无 — again, none. zero. nada. 🌈
🫶 Author 🫶
Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. (yes bestie, a robot wrote this and i'm just the messenger 💀)
and that's the whole page!! no cap, we kept every single detail — every option, every default, every parameter, every Q_DECL_OVERRIDE, all of it. periodt. ✨
signing off from LIBKYSDK-APPLICATIONS, Version version:3.0, where this lil kdk::KFlowLayout(3) page lives 💖 bye bestie, go build something gorgeous 🦋🌸
📦 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