<p>Hi, everyone.I have some trouble to use the signals to trigger events QTreeWidget.</p><p>The detailed &nbsp;situation is that:<br></p><p>I want&nbsp;trigger a event by click the left button on the &nbsp;items in treeWidget. I try to use&nbsp;</p>
<p>&lt;self.connect(self.treeWidget,SIGNAL(&quot;activated()&quot;),self.activedFunction)&gt; to do this,&nbsp; </p><p>the&nbsp;activedFunction doesn&#39;t work.</p><p></p><p>Now, I use &lt; self.connect(self.treeWidget,SIGNAL(&#39;itemSelectionChanged()&#39;),self.activedFunction)&gt;</p>
<p>to do this, the&nbsp;activedFunction can be actived. </p><p></p><p>However, if I want to store the item which is selected into a local variable, how this activedFunction should be defined?</p><p></p><p>Thanks</p><p>Lee</p>