kdk::KSwitchButton(3)

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

💖 NAME 💖

kdk::KSwitchButton — the little button that shows two vibes: on and off ✨ (指示打开/关闭两种状态, if you speak the language of the source, bestie)


🌸 SYNOPSIS 🌸

#include <kswitchbutton.h>

It inherits QPushButton, so like… it's a QPushButton at heart but with main character energy 🫶

🎀 Signals 🎀

  • void stateChanged (bool) — fires this signal whenever the checked state changes (当选中状态发生变化时,发出此信号). It's giving "notify me when things shift" 💅

🦋 Public Member Functions 🦋

  • KSwitchButton (QWidget *parent=0) — the constructor, obviously, and parent defaults to 0
  • void setCheckable (bool) — sets whether it can be checked at all (设置是否可选中)
  • bool isCheckable () const — returns whether it can be checked (返回是否可选中)
  • bool isChecked () const — returns whether it is checked (返回是否选中)
  • void setChecked (bool) — sets whether it's checked (设置是否选中)
  • void setTranslucent (bool flag) — sets whether the translucent effect is enabled (设置是否启用半透明效果) 🫧
  • bool isTranslucent () — gets whether the translucent effect is enabled (获取是否启用半透明效果)

🌈 Protected Member Functions 🌈

  • void paintEvent (QPaintEvent *event) override — overridden, so you can touch this but like, protected, know your place bestie 🙈
  • void resizeEvent (QResizeEvent *event) override — also overridden, also protected
  • QSize sizeHint () const — hands you the size hint, no override here, just const 🎀

👑 Detailed Description 👑

指示打开/关闭两种状态 — it shows you the two states: open and closed. That's the whole gig, and honestly? It ate. 🔥

⭐ Since ⭐

1.0.0 — an OG, no cap 💜


🍓 Author 🍓

Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. So nobody hand-wrote this, it just manifested, which is so real of it 🧚


okay that's the whole page, bestie, and the very last lil footer line said this was LIBKYSDK-APPLICATIONS, Version version:3.0 — mwah 💅 stan, hope this helped, ily, bye 🎀✨💖

📦 where this page comes from