<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
hi,<br>
<br>
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.<br>
<br>
bests<br>
Zoli<br>
<br>
<br>
On 2011.04.06. 2:43, James Polk wrote:
<blockquote cite="mid:300906.83618.qm@web38301.mail.mud.yahoo.com"
type="cite">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="font: inherit;" valign="top"><br>
I have a curious dilemma I can't seem to find any
information about in the docs...<br>
<br>
I have a QTreeView and a delegate...<br>
The items in the QTreeView have columns of similar data.
When I set the<br>
selection behaviour to multiSelect (actually called
ExtendedSelect) I can pick<br>
a single column of numbers that all have either a "1" in
them. I can then<br>
CTRL-click and change one of them from "1" to "0"...while
all of them are still<br>
highlighted/selected. <br>
<br>
What I want to do is to simultaneously change all of them
from 1 to 0 in one fell swoop.<br>
In the delegate though...if I try to use<br>
<br>
indices = treeView.selectedIndexes()<br>
<br>
it of course doesn't know anything about "treeView"....how
can I pass to the delegate<br>
some variable that contains an address/pointer/reference
to the QTreeView, so that I<br>
can query all the selected items. I'm trying to make this
work in the "setModelData"<br>
of the delegate.<br>
<br>
Thanks,<br>
-Jim<br>
<br>
<br>
<br>
<br>
</td>
</tr>
</tbody>
</table>
<br>
</blockquote>
</body>
</html>