- Qt 6.12
- Qt GUI
- C++ Classes
- QIconDragEvent
- Qt 6.12.0 Reference Documentation

# QIconDragEvent Class

The QIconDragEvent class indicates that a main icon drag has begun. More...

Header: | `#include <QIconDragEvent>`
CMake: | `find_package(Qt6 REQUIRED COMPONENTS Gui)` `target_link_libraries(mytarget PRIVATE Qt6::Gui)`
qmake: | `QT += gui`
Inherits: | QEvent

- List of all members, including inherited members
- QIconDragEvent is part of Event Classes.

## Public Functions

| QIconDragEvent()

## Protected Functions

| QIconDragEvent(QIconDragEvent &&)
QIconDragEvent & | operator=(QIconDragEvent &&)
QIconDragEvent & | operator=(const QIconDragEvent &other)

## Detailed Description

Icon drag events are sent to widgets when the main icon of a window has been dragged away. On macOS, this happens when the proxy icon of a window is dragged off the title bar.

It is normal to begin using drag and drop in response to this event.

See also Drag and Drop, QMimeData, and QDrag.

## Member Function Documentation

### QIconDragEvent::QIconDragEvent()

Constructs an icon drag event object with the accept flag set to false.

See also accept().

### `[protected delete]` QIconDragEvent::QIconDragEvent(QIconDragEvent &&)

Move-constructs an instance of QIconDragEvent. This function is deleted.

### `[protected delete]` QIconDragEvent &QIconDragEvent::operator=(QIconDragEvent &&)

Move-assigns other to this QIconDragEvent instance. This function is deleted.

### `[noexcept protected default]` QIconDragEvent &QIconDragEvent::operator=(const QIconDragEvent &other)

Copy-assigns other to this QIconDragEvent instance.