返回介绍

QDragEnterEvent Class

发布于 2019-10-04 14:59:55 字数 1156 浏览 1282 评论 0 收藏 0

The QDragEnterEvent class provides an event which is sent to the widget when a drag and drop first drags onto the widget. More...

#include <qevent.h>

Inherits QDragMoveEvent.

List of all member functions.

Public Members

  • QDragEnterEvent ( constQPoint&pos )

Detailed Description

The QDragEnterEvent class provides an event which is sent to the widget when a drag and drop first drags onto the widget.

This event is always immediately followed by a QDragMoveEvent, so you only need to respond to one or the other event. This class inherits most of its functionality from QDragMoveEvent, which in turn inherits most of its functionality from QDropEvent.

See also QDragLeaveEvent, QDragMoveEvent, QDropEvent, Drag And Drop Classes and Event Classes.


Member Function Documentation

QDragEnterEvent::QDragEnterEvent ( constQPoint&pos )

Constructs a QDragEnterEvent entering at the given point, pos.

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文