QIconDragEvent 类指示已开始拖拽主图标。 更多...
头: | #include <QIconDragEvent> |
CMake: |
find_package(Qt6 COMPONENTS Gui REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::Gui) |
qmake: | QT += gui |
继承: | QEvent |
QIconDragEvent () |
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.
另请参阅 拖放 , QMimeData ,和 QDrag .
构造图标拖拽事件对象,并将接受标志设为 false。
另请参阅 accept ().