QDragLeaveEvent Class

The QDragLeaveEvent class provides an event that is sent to a widget when a drag and drop action leaves it. More...

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

Public Functions

QDragLeaveEvent()
virtual ~QDragLeaveEvent() override

Reimplemented Public Functions

virtual QDragLeaveEvent *clone() const override

Protected Functions

QDragLeaveEvent(const QDragLeaveEvent &)
QDragLeaveEvent(QDragLeaveEvent &&)
QDragLeaveEvent &operator=(const QDragLeaveEvent &other)
QDragLeaveEvent &operator=(QDragLeaveEvent &&)

Detailed Description

This event is always preceded by a QDragEnterEvent and a series of QDragMoveEvents. It is not sent if a QDropEvent is sent instead.

See also QDragEnterEvent, QDragMoveEvent, and QDropEvent.

Member Function Documentation

[protected] QDragLeaveEvent::QDragLeaveEvent(const QDragLeaveEvent &)

Default constructs an instance of QDragLeaveEvent.

[protected] QDragLeaveEvent::QDragLeaveEvent(QDragLeaveEvent &&)

Move-copy constructor.

QDragLeaveEvent::QDragLeaveEvent()

Constructs a QDragLeaveEvent.

Warning: Do not create a QDragLeaveEvent yourself since these objects rely on Qt's internal state.

[override virtual] QDragLeaveEvent::~QDragLeaveEvent()

Destroys the instance of QDragLeaveEvent. The destructor is virtual.

[override virtual] QDragLeaveEvent *QDragLeaveEvent::clone() const

[protected] QDragLeaveEvent &QDragLeaveEvent::operator=(const QDragLeaveEvent &other)

Copy-assignment operator.

[protected] QDragLeaveEvent &QDragLeaveEvent::operator=(QDragLeaveEvent &&)

Move-assignment operator.

© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.