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

一、概述

SelectionBehavior属性用于控制选择行为操作的数据单位,是指选择时选中数据是按行、按列还是按项来选择。SelectionBehavior对应类型为枚举类型QAbstractItemView.SelectionBehavior 。

二、QAbstractItemView.SelectionBehavior 取值及含义

在这里插入图片描述

三、属性访问方法

  • selectionBehavior():读取属性值
  • setSelectionBehavior(QAbstractItemView.SelectionBehavior behavior):设置属性值

老猿Python,跟老猿学Python!

posted on 2019-12-11 22:55  老猿Python  阅读(577)  评论(0编辑  收藏  举报