Is it possible to deselect in a QTreeView by clicking off an item?

后端 未结 8 1212
盖世英雄少女心
盖世英雄少女心 2020-12-30 05:35

I\'d like to be able to deselect items in my QTreeView by clicking in a part of the QTreeView with no items in, but I can\'t seem to find anyway of doing this. I\'d intercep

8条回答
  •  独厮守ぢ
    2020-12-30 06:31

    You could try setting a different selection mode for your widget. I don't know if any of them quite covers what it appears you want (single selection, but deselectable).

提交回复
热议问题