kdk::KAddFileButton(3)

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

🎀 NAME 🎀

kdk::KAddFileButton — 选择文件的按钮 — aka the little button that lets you pick a file 💅

(it lives in the Library Functions Manual section, bestie, section 3 🫶)


✨ SYNOPSIS ✨

#include <kaddfilebutton.h>

It Inherits QPushButton. Yep, it's a push button at heart, it just has main character energy 🌟

💖 Public Member Functions

  • KAddFileButton (QWidget *parent=nullptr)
  • void setText (QString str) — 设置文本 ✍️
  • QFileDialog * fileDialog () — 获取filedialog 📂
  • void setNameFilter (const QString &filter) — 将文件对话框中使用的过滤器设置为给定的过滤器。
  • void setNameFilters (const QStringList &filters) — 设置文件对话框中使用的过滤器。

🦋 Protected Member Functions

  • void paintEvent (QPaintEvent *event)
  • bool eventFilter (QObject *watched, QEvent *event)
  • void mouseMoveEvent (QMouseEvent *event)
  • void mousePressEvent (QMouseEvent *event)
  • void mouseReleaseEvent (QMouseEvent *event)
These ones are protected, so like… they're for the class's inner circle only 🙈 not your call to make from outside, no cap.

💖 Detailed Description 💖

选择文件的按钮 — it's literally the button for choosing a file, and it understood the assignment 👑

Since: 2.4.1.0 ⭐


🌸 Member Function Documentation 🌸

QFileDialog * kdk::KAddFileButton::fileDialog ()

获取filedialog — hands you back the file dialog, bestie 📂

Returns: QFileDialog 🎁

void kdk::KAddFileButton::setNameFilter (const QString & filter)

将文件对话框中使用的过滤器设置为给定的过滤器。 — sets the filter used in the file dialog to the filter you pass in, periodt.

Parameters: filter

void kdk::KAddFileButton::setNameFilters (const QStringList & filters)

设置文件对话框中使用的过滤器。 — sets the filters used in the file dialog. plural filters, plural vibes 🌈

Parameters: filters

void kdk::KAddFileButton::setText (QString str)

设置文本 — sets the text ✍️

Parameters: str


👑 Author 👑

Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code. 🤖 (not me writing it by hand, the robots did that part, iykyk)


okay that's the whole page, you ate it up fr fr 🍓 this was kdk::KAddFileButton(3) from LIBKYSDK-APPLICATIONS, Version version:3.0 — mwah, go pick some files 💅💖

📦 where this page comes from