<div>Haven't tried it yet, but read about it and will go there later.</div>
<div> </div>
<div>Thanks,</div>
<div>Bjorn<br><br></div>
<div class="gmail_quote">On Wed, Apr 14, 2010 at 10:21 AM, Russell Valentine <span dir="ltr"><<a href="mailto:russ@coldstonelabs.org">russ@coldstonelabs.org</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">You try the new signals and slots?<br>self.projectTree.itemClicked.connect(self.debug1)<br>
<div>
<div></div>
<div class="h5"><br>On 04/14/10 09:54, Bjorn Egil Ludvigsen wrote:<br>> Thank you very much Vincent, your second option using another signal<br>> "itemSelectionChanged()" worked very well, so I can use that to perform<br>
> other actions.<br>><br>> However, I still cannot get the "itemClicked(QTreeWidgetItem*)" to work (or<br>> "itemDoubleClicked..."), even with sending the column (int) in addition,<br>> which should not be necessary in PyQt.<br>
><br>> Appreciate more help on this, but not critical for now with Vincent's<br>> suggestion.<br>><br>> Regards,<br>> Bjorn<br>><br>> On Tue, Apr 13, 2010 at 10:35 PM, Vincent Vande Vyvre <<br>
> <a href="mailto:vincent.vandevyvre@swing.be">vincent.vandevyvre@swing.be</a>> wrote:<br>><br>>> Try with "itemClicked(QTreeWidgetItem*, int)<br>>><br>>> also:<br>>><br>>> self.connect(self.projectTree,<br>
>> SIGNAL("itemSelectionChanged()"),<br>>> self.showEvents)<br>>><br>>> def showEvents(self):<br>>> item = self.projectTree.currentItem()<br>
>><br>>> Bjorn Egil Ludvigsen a écrit :<br>>><br>>> Hi,<br>>><br>>> I cannot get any signal from QTreeWidget and wonder if anyone have any idea<br>>> of where to look?<br>>><br>
>> I have a QMainWindow with a QTabWidget and some QDockWidgets. A QTreeWidget<br>>> is added to the dockwidget. After successfully populating all tables and the<br>>> tree with data, I want to click on certain items in the tree to select data<br>
>> and set focus on a particular table. When I click in the tree it looks like<br>>> items are selected (background color is set), but I am not able to get any<br>>> actions out of it.<br>>><br>>> To debug I am checking to see if items are clicked:<br>
>><br>>> self.connect(self.uncertaintyTable,<br>>> SIGNAL("itemDoubleClicked(QTableWidgetItem*)"),<br>>> self.debug1)<br>>> self.connect(self.projectTree,<br>
>> SIGNAL("itemClicked(QTreeWidgetItem*)"),<br>>> self.showEvents)<br>>> .<br>>> .<br>>> .<br>>> .<br>>> def debug1(self):<br>>> self.logMessages.addItem("Uncertainty table item double<br>
>> clicked")<br>>> def showEvents(self):<br>>> self.logMessages.addItem("tree item clicked")<br>>><br>>> For the table I successfully see the text that the item was clicked (or<br>
>> double clicked), but for the tree I cannot get anything to work.<br>>><br>>> Regards,<br>>> Bjorn<br>>><br>_______________________________________________<br>PyQt mailing list <a href="mailto:PyQt@riverbankcomputing.com">PyQt@riverbankcomputing.com</a><br>
<a href="http://www.riverbankcomputing.com/mailman/listinfo/pyqt" target="_blank">http://www.riverbankcomputing.com/mailman/listinfo/pyqt</a><br></div></div></blockquote></div><br>