The QIconDragEvent class indicates that a main icon drag has begun. 更多...
头: | #include <QIconDragEvent> |
qmake: | QT += gui |
继承: | QEvent |
QIconDragEvent () |
The QIconDragEvent class indicates that a main icon drag has begun.
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 ().