QIconDragEvent Class

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

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

Public Functions

QIconDragEvent()

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().

© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.0/qicondragevent.html