kdk::KSearchLineEdit(3)
✨ NAME ✨
kdk::KSearchLineEdit — 搜索输入框,可搜索匹配条件的item — bestie, that's a search input box that can search for items matching your conditions 🫶 it's giving "type and it finds stuff" and honestly? iconic.
🌸 SYNOPSIS 🌸
#include <ksearchlineedit.h>
Inherits QLineEdit. Yeah, it's a glow-up of QLineEdit, not a from-scratch girlie 💅
🎀 Public Slots 🎀
void clear ()— wipes the whole thing, clean slate energy ✨
🦋 Public Member Functions 🦋
KSearchLineEdit (QWidget *parent=nullptr)— the constructor, and yes the default parent is literallynullptr, no capvoid setEnabled (bool)— 设置是否可用 — turns the "is it usable" switch on or offbool isEnabled ()— 返回是否可用 — tells you whether it's usable rnvoid setClearButtonEnabled (bool enable)— 设置是否显示清除按钮 — decides if the lil clear button shows upbool isClearButtonEnabled () const— 返回是否显示清除按钮 — tells you if that clear button is showingQString placeholderText () const— 返回placeholder — hands you back the placeholdervoid setPlaceholderText (const QString &)— 设置placeholder — you set the placeholderQt::Alignment placeholderAlignment () const— 返回placeholder的对齐方式 — returns how the placeholder is alignedvoid setPlaceholderAlignment (Qt::Alignment flag)— 设置placeholder的对齐方式 — sets how the placeholder is alignedQt::Alignment alignment () const— 设置输入文本的对齐方式 — okay the docs say "set" here even though it's a getter, lowkey a typo moment, but that's the input text alignment vibevoid setAlignment (Qt::Alignment flag)— 设置输入文本的对齐方式返回 — sets the input text alignment (and yes the original description ends with 返回, we love a mystery 🕵️)void setTranslucent (bool flag)— 设置是否启用半透明效果 — turns the semi-transparent see-through glow on or offbool isTranslucent ()— 获取是否启用半透明效果 — fetches whether that semi-transparent effect is onvoid reloadStyle ()— 重新加载style — reloads the style, a little refresh, a little self-care 🧖KToolButton * customButton ()— 获取自定义按钮 — grabs you the custom buttonvoid setGradation (bool flag)— 是否启用渐变色 — whether to enable gradient colours 🌈void setCustomButtonVisible (bool flag)— 设置智能语义按钮是否可见 — sets whether the smart semantic button is visiblebool isCustomButtonVisible ()— 返回智能语义按钮是否可见 — returns whether that smart semantic button is visible
💜 Protected Member Functions 💜
These are the backstage ones, iykyk — not for just anyone to call:
bool eventFilter (QObject *watched, QEvent *event)void resizeEvent (QResizeEvent *event)void setVisible (bool visible)void paintEvent (QPaintEvent *event)QSize sizeHint () const override
🌟 Detailed Description 🌟
搜索输入框,可搜索匹配条件的item — it's the search input box that searches for items matching your conditions. Main character energy for real.
⭐ Since
1.0.0 — been here since the beginning, a true OG 👑
💀 Examples
testsearchlinedit/widget.h. — go look at it, it's right there, no gatekeeping fr fr
🌈 Author
Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. Not a human author, just Doxygen doing its lil autopilot thing 🙈
Heads up bestie: this page is auto-generated, so a couple of the descriptions are a bit scrambled (we're looking at you, alignment ()). Copy the signatures exactly as written and you're golden 💖
okay bye ily, this was LIBKYSDK-APPLICATIONS, Version version:3.0, kdk::KSearchLineEdit(3) — slay, periodt 🎀✨
📦 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