Re: [PyQt] Editing multiple items in QTreeView delegate

2011-04-07 Thread James Polk
...and  just to cleanup and clarify, in "ms.py", I had to go back and edit it to be: global MyTreeView instead of just simply "MyTreeView" which I wrote before... ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com

Re: [PyQt] Editing multiple items in QTreeView delegate

2011-04-06 Thread James Polk
Well I found a solution and thought I would share it... Probably not the most elegant, but it does work.. Works by using an import global variable (told you it wasn't elegant ;-) I created a file named "ms.py" and inside is a single line: MyTreeView and that's all. In my main.py,...I "im

Re: [PyQt] Editing multiple items in QTreeView delegate

2011-04-06 Thread Zoltan Szalai
hi, not sure its a good idea but i solved this kind of problem by sending a signal from the delegate which the view can catch and perform the edit on all the selected items. it works just fine here. bests Zoli On 2011.04.06. 2:43, James Polk wrote: I have a curious dilemma I can't seem to

Re: [PyQt] Editing multiple items in QTreeView delegate

2011-04-06 Thread Hans-Peter Jansen
On Wednesday 06 April 2011, 02:43:38 James Polk wrote: > I have a curious dilemma I can't seem to find any information about > in the docs... > > I have a QTreeView and a delegate... > The items in the QTreeView have columns of similar data.  When I set > the selection behaviour to multiSelect (act

[PyQt] Editing multiple items in QTreeView delegate

2011-04-05 Thread James Polk
I have a curious dilemma I can't seem to find any information about in the docs... I have a QTreeView and a delegate... The items in the QTreeView have columns of similar data.  When I set the selection behaviour to multiSelect (actually called ExtendedSelect) I can pick a single column of numbe