Skip to content

Commit

Permalink
add treeWidget Demo
Browse files Browse the repository at this point in the history
  • Loading branch information
weike32 committed Apr 20, 2019
1 parent 009e45a commit 79deb5c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 48 deletions.
3 changes: 2 additions & 1 deletion QTreeWidget/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@


![ParsingJson](ScreenShot/ParsingJson.png)

## 2、点击父节点全选/取消全选子节点
[运行 testTreeWidget.py](testTreeWidget.py)

点击父节点全选/取消全选子节点

![testTreeWidget](allSelect.png)
![testTreeWidget](ScreenShot/allSelectNode.png)
File renamed without changes
47 changes: 0 additions & 47 deletions QTreeWidget/testTree.py

This file was deleted.

1 change: 1 addition & 0 deletions QTreeWidget/testTreeWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class graphAnalysis(QDialog,Ui_Form):
def __init__(self):
super(graphAnalysis, self).__init__()
self.setupUi(self)
# 点击父节点
self.treeWidget.itemChanged.connect(self.handleChanged)
def handleChanged(self,item,column):
count = item.childCount()
Expand Down

0 comments on commit 79deb5c

Please sign in to comment.