PyQt(Python+Qt)学习随笔: QAbstractItemView的dragDropMode属性

一、概述

dragDropMode属性用于控制视图拖放事件的处理方式,其类型为枚举类型DragDropMode。

二、枚举类型DragDropMode取值及含义

在这里插入图片描述

三、访问方法

  • dragDropMode():读取属性值,返回值为bool类型
  • setDragDropMode(DragDropMode behavior):设置属性

老猿Python,跟老猿学Python!

原文地址:https://www.cnblogs.com/LaoYuanPython/p/12235163.html