kdk::KDragWidget(3)
💖 NAME 💖
kdk::KDragWidget — bestie, it's a widget that lets you drag files or folders, and it can recognize them and grab the file or folder path. It's giving "drag and drop but make it ✨intuitive✨".
🦋 SYNOPSIS 🦋
#include <kdragwidget.h>
Inherits QWidget. So yeah, it's a widget-widget, it has main character energy in the Qt hierarchy 💅
🎀 Signals 🎀
void getPath (QString)void getPathList (QStringList)— the get-the-list signal, it hands you the whole list
🌸 Public Member Functions 🌸
KDragWidget (QWidget *parent=nullptr)KPushButton * iconButton ()— iconButtonQLabel * textLabel ()— textLabelQFileDialog * fileDialog ()— fileDialogvoid setNameFilter (const QString &filter)— sets the filter used inside the file dialog to the filter you give itvoid setNameFilters (const QStringList &filters)— sets the filters used inside the file dialog
🧚 Protected Member Functions 🧚
void mouseMoveEvent (QMouseEvent *event)void mousePressEvent (QMouseEvent *event)void mouseReleaseEvent (QMouseEvent *event)void keyPressEvent (QKeyEvent *event)void keyReleaseEvent (QKeyEvent *event)void paintEvent (QPaintEvent *event)bool eventFilter (QObject *watched, QEvent *event)void dragEnterEvent (QDragEnterEvent *event)void dragLeaveEvent (QDragLeaveEvent *event)void dragMoveEvent (QDragMoveEvent *event)void dropEvent (QDropEvent *event)
🌈 Detailed Description 🌈
Drag files or folders — it recognizes them and can grab the file or folder path. That's the whole vibe 🫶
⭐ Since ⭐
2.3.1.0
👑 Member Function Documentation 👑
QFileDialog * kdk::KDragWidget::fileDialog ()
fileDialog. Yep, that's it, that's the description 😭
Returns
Returns QFiledialog — the file dialog, obviously.
void kdk::KDragWidget::getPathList (QStringList) [signal]
The get-the-list signal 📋 — it hands you the list.
Since
2.5.1.2-0k1.0
KPushButton * kdk::KDragWidget::iconButton ()
iconButton. Short and sweet, no notes 💅
Returns
Returns iconbutton — the icon button.
void kdk::KDragWidget::setNameFilter (const QString & filter)
Sets the filter used inside the file dialog to the filter you pass in. One filter, one vibe 🎀
Parameters
- filter
void kdk::KDragWidget::setNameFilters (const QStringList & filters)
Sets the filters used inside the file dialog. Plural. Multiple filters. We love options ✨
Parameters
- filters
QLabel * kdk::KDragWidget::textLabel ()
textLabel. That's the whole documentation, bestie, don't come for me 🙈
Returns
Returns textlabel — the text label.
🌸 Author 🌸
Generated automatically by Doxygen for LIBKYSDK-APPLICATIONS from the source code.
And that's a wrap, babe 🫶 this wasLIBKYSDK-APPLICATIONS, Versionversion:3.0, and yes the page is literally calledkdk::KDragWidget(3). Slay, go drag some files 💖✨🎀
📦 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