Re: [PyKDE] [PyQt]: how to refresh a QTreeView widget?

2006-09-11 Thread Oscar Cossu
In this way works. Thank you so much Andreas, you've saved my life...2006/9/8, Andreas Pakulat <[EMAIL PROTECTED]>: On 08.09.06 16:29:32, Oscar Cossu wrote:>def child(self, i):>if self.childItems.has_key(i):>return self.childItems[i]>&

Re: [PyKDE] [PyQt]: how to refresh a QTreeView widget?

2006-09-08 Thread Oscar Cossu
lem(nodo.nodeName(),nodo.attributes().namedItem("id").nodeValue(),nodo.attributes().namedItem("goToSequence").nodeValue()))         ##--        if nodo.hasChildNodes():    for count in range(nodo.childNodes

Re: [PyKDE] [PyQt]: how to refresh a QTreeView widget?

2006-09-08 Thread Oscar Cossu
pologise for my english...hope it's understandable    2006/9/8, Andreas Pakulat < [EMAIL PROTECTED]>:On 08.09.06 10:38:51, Oscar Cossu wrote: > thank you for the advice, I have read the doc again (and again and again).> Now, I use a QTreeView ,what i have to do ?>>

Re: [PyKDE] [PyQt]: how to refresh a QTreeView widget?

2006-09-08 Thread Oscar Cossu
  ?2006/9/7, Andreas Pakulat < [EMAIL PROTECTED]>: On 07.09.06 16:44:23, Oscar Cossu wrote:> Hy all,  I set the model of a QTreeView with an object that is a subclass of> QAbstractItemModel.> When I change the model (ex. deleting a row) and emit layoutChanged() > signal, the treeM

[PyKDE] [PyQt]: how to refresh a QTreeView widget?

2006-09-07 Thread Oscar Cossu
Hy all,  I set the model of a QTreeView with an object that is a subclass of QAbstractItemModel.When I change the model (ex. deleting a row) and emit layoutChanged() signal, the treeModel should update the view, but errors occur. The model contain a QDomDocument object, and the QTeeView draw the xm

[PyKDE] [PyQT]problem updating a QTreeView after model changes

2006-08-29 Thread Oscar Cossu
Hy all.I use a QTreeView to show a QDomDocument object. Using drag & drop i makes change to the DOM three.The issue: when i send the signal to view to update, data goes corrupted, but only in the view. This is the code:def dropEvent(self, event):    oggetto=event.source()    parent=oggetto