我派生了QTreeWidget类并创建了我自己的QtPropertyTree。为了填充小部件(复选框,按钮等),我使用下面的代码树: // in QtPropertyTree.cpp
QTreeWidgetItem topItem1 = new QTreeWidgetItem(this);
QTreeWidgetItem subItem = new QTreeWidgetItem(this)
我尝试在我的QtreeWidget列中插入项目列表:每个数据都插入到每列中,因此存在与列一样多的项目。 我正在使用MVC架构,但插入失败! 这是我的看法: def addContact(self, list):#add contact to my QTreeWidget
list=[] #list of contact
items=[]; #list of item