<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br>Okay,..I gotta' good one for ya'll...lol<br><br>I have a TreeView displaying data,..it's supported by a <br>QStyleItemDelegate that's controlling the editing/display of various cells<br>in the TreeView. There is a plainTextEdit window also in the main<br>window. When a user makes a selection in the TreeView, <br>the "selectionChanged" function retrieves some data and displays it <br>in the plainTextEdit.  So far so good, right?<br><br>Okay, so when I double-click on a cell, the delegate properly<br>shows me a comboBox,....I pick an item and hit return, and<br>while the cell properly updates,...the delegate doesn't trigger<br>"selectionChanged" in the TreeView, and in turn, doesn't trigger<br>the text in the plainTextEdit box to be updated either.<br><br>In the delegate, in "setModelData", I can intercept the proper<br>row,column,cell,etc...but I can't
 find the right syntax to call the<br>"selectionChanged" function because I can't determine the<br>parent....<br><br>in main.py, <br><br>self.selectionModel.selectionChanged.connect(self.treeViewSelectionChanged)<br><br>and the function:<br><br>    def treeViewSelectionChanged(self):<br>                  statement<br>                  statement<br>                  etc<br><br>all normal enough,...but in the "main_delegate.py"..."self" does not<br>mean the MainWindow in "main.py"...<br>The "createEditor" function in the delegate file does have a "parent"<br>argument, but the "setModelData" function does not.  I'm assuming<br>that if it did,..I could
 call<br><br> parent.treeViewSelectionChanged()<br><br>As an alternative, I thought I could just update the plainTextEdit<br>box "manually" from setModelData in the delegate, but again,<br>same problem....<br><br>Could I make the control "self.plainTextEdit" global ?<br>so that I could call it from the delegate...<br><br>Any help or advice would be most greatly appreciated,<br>Cheers,<br>-James<br><br></td></tr></table><br>