QDragEnterEvent Class
QDragEnterEvent 클래스는 드래그 앤 드롭 동작이 위젯에 들어올 때 위젯으로 전송되는 이벤트를 제공합니다. 더 보기...
헤더: | #include <QDragEnterEvent> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Gui) target_link_libraries(mytarget PRIVATE Qt6::Gui) |
qmake: | QT += gui |
상속합니다: | QDragMoveEvent |
- 상속된 멤버를 포함한 모든 멤버 목록
- QDragEnterEvent는 이벤트 클래스의 일부입니다.
공용 함수
QDragEnterEvent(const QPoint &point, Qt::DropActions actions, const QMimeData *data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers) |
상세 설명
위젯은 드래그 앤 드롭 동작이 진행되는 동안 전송되는 drag move events 을 수신하기 위해 이 이벤트를 수락해야 합니다. 드래그 입력 이벤트는 항상 드래그 이동 이벤트가 바로 뒤따릅니다.
QDragEnterEvent는 QDragMoveEvent 에서 대부분의 기능을 상속받으며, 이는 다시 QDropEvent 에서 대부분의 기능을 상속받습니다.
QDragLeaveEvent, QDragMoveEvent, QDropEvent 를참조하세요 .
멤버 함수 문서
QDragEnterEvent::QDragEnterEvent(const QPoint &point, Qt::DropActions actions, const QMimeData *data, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers)
buttons 및 modifiers 에 지정된 마우스 및 키보드 상태로 지정된 point 에 위젯을 드래그하는 것을 나타내는 QDragEnterEvent를 구축합니다.
드래그 데이터는 data 에서 MIME 인코딩된 정보로 전달되며, 지정된 actions 은 수행 가능한 드래그 앤 드롭 작업의 유형을 설명합니다.
경고: 이러한 객체는 Qt의 내부 상태에 의존하므로 QDragEnterEvent를 직접 만들지 마십시오.
© 2025 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.