QIconDragEvent Class

QIconDragEvent 类表示主图标拖动开始。更多

头文件: #include <QIconDragEvent>
CMake.QIconDragEvent find_package(Qt6 REQUIRED COMPONENTS Gui)
target_link_libraries(mytarget PRIVATE Qt6::Gui)
qmake: QT += gui
继承: QEvent

公共函数

详细说明

当窗口的主图标被拖走时,会向部件发送图标拖动事件。在 macOS 上,当窗口的代理图标被拖离标题栏时,就会发生这种情况。

响应此事件时,开始使用拖放是正常的。

另请参阅 拖放QMimeDataQDrag

成员函数文档

QIconDragEvent::QIconDragEvent()

构造一个接受标志设置为 false 的图标拖动事件对象。

另请参阅 accept().

© 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.