DropSupport Class | Extending Qt Creator Manual

Extending Qt Creator Manual | DropSupport

Extending Qt Creator Manual 4.6.0

# DropSupport Class

(Utils::DropSupport)

- List of all members, including inherited members

## Public Types

class | FileSpec
typedef | DropFilterFunction

## Public Functions

| DropSupport(QWidget *parentWidget, const DropFilterFunction &filterFunction = DropFilterFunction())
bool | isFileDrop(QDropEvent *event) const
bool | isValueDrop(QDropEvent *event) const

## Signals

void | filesDropped(const QList<Utils::DropSupport::FileSpec> &files, const QPoint &dropPos)
void | valuesDropped(const QList<QVariant> &values, const QPoint &dropPos)

## Static Public Members

QStringList | mimeTypesForFilePaths()

## Protected Functions

bool | eventFilter(QObject *obj, QEvent *event)

## Member Type Documentation

### typedef DropSupport::DropFilterFunction

## Member Function Documentation

### DropSupport::DropSupport(QWidget *parentWidget, const DropFilterFunction &filterFunction = DropFilterFunction())

Default constructs an instance of DropSupport.

### `[protected]` bool DropSupport::eventFilter(QObject *obj, QEvent *event)

### `[signal]` void DropSupport::filesDropped(const QList<Utils::DropSupport::FileSpec> &files, const QPoint &dropPos)

### bool DropSupport::isFileDrop(QDropEvent *event) const

### bool DropSupport::isValueDrop(QDropEvent *event) const

### `[static]` QStringList DropSupport::mimeTypesForFilePaths()

### `[signal]` void DropSupport::valuesDropped(const QList<QVariant> &values, const QPoint &dropPos)