<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br>Having a real problem figuring this one out, am hoping you guys<br>can shed some light on this...<br><br>In my treeview, I have decoration turned off, so it looks like a <br>table or spreadsheet,...I have a delegate (that's been working fine)<br>that handles the display of items in the treeview, right...<br>Across the columns of the view, there are a several different item<br>types, an icon, text, date, time, more text,etc...have all been <br>working fine,etc...<br><br>There is a cell (let's call it cell-4) that is edited by a comboxBox <br>in the delegate. When the user changes it by selection, <br>I've added code in the delegate that will also change it's <br>next door neighbor cell (let's call this cell-5)<br>(This "next-door-neighbor" was originally a "DateEdit" cell,<br>that presents a calendarPopup when it's edited,etc.)<br><br>The problem is...I
 double-click on cell-4, and I change<br>it's contents, it in turn changes cell-5's contents.  <br>However, now when I double-click on cell-5, it resets the<br>date....losing the original date that was displaying correctly.<br><br>Now the code that's run when cell-4 is edited makes sure<br>to change cell-5 by using the same formating that happens<br>when the program is first run,,..namely<br><br>QtCore.QDate.fromString( dataString , DATE_FORMAT) )<br><br>the whole line is actually<br><br>model.setData(index, QtCore.QDate.fromString( dataString , DATE_FORMAT) )<br><br>My delegate has these functions:<br><br>    def paint(self, painter, option, index):<br>    def sizeHint(self, option, index):<br>    def createEditor(self, parent, option, index):<br>    def commitAndCloseEditor(self):<br>    def setEditorData(self, editor, index):<br>    def setModelData(self,
 editor, model, index):<br><br>Now I emphasize,...that run the program from startup...<br>without modifying cell-4,..I can double-click on cell-5 all day,<br>and it responds correctly.  I would have thought that the *format*<br>of a cell...or the data that's in it,...would stick, until changed...<br>but that doesn't appear to be the case,...as far as my understanding<br>of the phenomena goes, lol...<br><br>Any help or advice would be greatly appreciated...<br>Cheers,<br>-James<br><br></td></tr></table><br>