[PyQt] TreeView delegate operations

2011-01-18 Thread James Polk
Doh!please ignore that last emailI found the problem...and it is me! For those who are using Maya and PyQt, may I offer this hard-earned pearl of wisdom?(who knows maybe somebody else will have the answer, lol) Unlike MEL,...where you can re-source the code and re-run the code to ge

[PyQt] TreeView delegate operations

2011-01-18 Thread James Polk
Having a real problem figuring this one out, am hoping you guys can shed some light on this... In my treeview, I have decoration turned off, so it looks like a table or spreadsheet,...I have a delegate (that's been working fine) that handles the display of items in the treeview, right... Across

[PyQt] Treeview with exclusive checkboxes - used to work

2010-01-08 Thread Mads Ipsen
Hi, Some time ago I wrote a simple extension to the QStandardItemModel class that permits exclusive checkboxes in a treeview, ie. radio button behavior. This no longer works. If you check the first item, and then check one of the other, the first item it not unchecked. If you then navigate

Re: [PyQt] TreeView and its itemDelegate

2009-05-29 Thread Albert Cervera i Areny
A Divendres, 29 de maig de 2009, Ben De Luca va escriure: > Hi List, > > I am implimenting a treeview and I wanted the editor that I use to > change tree names to show the name, rather than being blank. When I > look at the tree view it is using a QtGui.QStyledItemDelegate so I > subclass that wit

[PyQt] TreeView and its itemDelegate

2009-05-29 Thread Ben De Luca
Hi List, I am implimenting a treeview and I wanted the editor that I use to change tree names to show the name, rather than being blank. When I look at the tree view it is using a QtGui.QStyledItemDelegate so I subclass that with a completely empty function and then set it as my trees item delega

Re: [PyQt] treeview model/view or item-based?

2008-05-05 Thread Ulrich
That looks like a good idea and should be easy to implement. Regards, Ulrich Doug Bell wrote: You don't actually have to create all items at once with the tree-widget item-based approach. You can just create the visible items (that have open parents). Then create a method that loads children o

Re: [PyQt] treeview model/view or item-based?

2008-05-05 Thread Doug Bell
Ulrich wrote: > The tree has 3 to 4 levels. Let's say the first level contains 30 items, > the second level 2000 and the third contains 7000 "folders". The last > level contains 50,000 items. > > I thought it would be a good idea (?) to store the data in a database > like SQLite, because this

[PyQt] treeview model/view or item-based?

2008-05-05 Thread Ulrich
Hi, I have tree-structured data, something like a filesystem where you have folders and files. FolderA +-FolderA1 +-FolderA2 --+--FileA2.1 +-FolderA3 FolderB FolderC I think you know what I mean ;-) The tree has 3 to 4 levels. Let's say the first level contains 30 items, the

RE: [PyQt] treeView doing my head in

2008-01-10 Thread Rupert Thorpe
ok, i need to use a QItemSelectionModel apparently... From: [EMAIL PROTECTED] To: pyqt@riverbankcomputing.com Date: Thu, 10 Jan 2008 11:58:54 + Subject: [PyQt] treeView doing my head in I think i must have some fundamental miss-understanding. i have a treeview full of stuff, any i

[PyQt] treeView doing my head in

2008-01-10 Thread Rupert Thorpe
I think i must have some fundamental miss-understanding. i have a treeview full of stuff, any i want users to be able to select nodes and do stuff with them. ok, originally i was going to make the items checkable since that how i have done this befor with QT3 and it was really easy. I have be

Re: [PyQt] treeview

2007-10-18 Thread David Boddie
On Tue Oct 16 16:41:26 BST 2007, lucaberto wrote: > Hello can you explain me why if i do this : > > import sys > from PyQt4 import QtCore, QtGui > > if __name__ == "__main__": > app = QtGui.QApplication(sys.argv) > > model = QtGui.QDirModel() > tree = QtGui.QTreeView() > tre

[PyQt] treeview

2007-10-16 Thread [EMAIL PROTECTED]
Hello can you explain me why if i do this : import sys from PyQt4 import QtCore, QtGui if __name__ == "__main__": app = QtGui.QApplication(sys.argv) model = QtGui.QDirModel() tree = QtGui.QTreeView() tree.setModel(model) tree.setWindowTitle(tree.tr("Dir View"))