<meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 19px; line-height: 25px; "><span title="" style="background-color: rgb(255, 255, 255); ">have a problem with SLOT,</span></span><div>
<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 19px; line-height: 25px; "><span title="" style="background-color: rgb(255, 255, 255); ">el slot se activa muchas veces<br></span><span title="">this is my code:</span></span><br clear="all">
<br></div><div>def add_item(self):</div><div><div><div><div> mdi = self.mdiArea.activeSubWindow()</div><div> mdi.setWindowModified(True)</div><div> tree = mdi.widget().treeRequirements</div><div> item = QTreeWidgetItem (tree)</div>
<div> item.setText (0, str("item"))</div><div> self.connect(tree, SIGNAL("itemClicked(QTreeWidgetItem *, int)"), self.show_widget)</div></div></div><div><br></div><div><br></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 16px; line-height: 24px; ">if I have five items in my QTreeWidget and I click one of them, the slot "show_widget" also runs five times</span></div>
<div><br></div><div><br>-- <br>Jose Vargas Paz<br> AKA: ejosvp<br>
</div></div>