...@riverbankcomputing.com] On Behalf Of David Boddie
Sent: Tuesday, May 03, 2011 6:46 PM
To: pyqt@riverbankcomputing.com
Subject: Re: [PyQt] selecting an item in qtreewidget
On Tue, 3 May 2011 22:19:27 +, Jason Rahm wrote:
One more thing, how do I pass the value of the clicked item
] selecting an item in qtreewidget
Newbie question...I'm stuck on how to select an item in my qtreewidget. This
loop populates my tree:
item = []
for item in allrules.keys():
hdr = QTreeWidgetItem([item])
self.treeWidget_iRulesList.addTopLevelItem(hdr
Sent: Tuesday, May 03, 2011 5:01 PM
To: pyqt@riverbankcomputing.com
Subject: Re: [PyQt] selecting an item in qtreewidget
I figured out the itemClicked part
def __init__(self):
self.treeWidget_iRulesList.itemClicked.connect(self.displayRule)
def displayRule(self
On Tue, 3 May 2011 22:19:27 +, Jason Rahm wrote:
One more thing, how do I pass the value of the clicked item to the
displayRule def? Printing test gets the GUI components figured out, but
not functional. Thanks in advance.
The itemClicked signal passes two parameters which you can