kdk::KDragWidget(3)

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

💖 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 () — iconButton
  • QLabel * textLabel () — textLabel
  • QFileDialog * fileDialog () — fileDialog
  • void setNameFilter (const QString &filter) — sets the filter used inside the file dialog to the filter you give it
  • void 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 was LIBKYSDK-APPLICATIONS, Version version:3.0, and yes the page is literally called kdk::KDragWidget(3). Slay, go drag some files 💖✨🎀
📦 where this page comes from