|
|
I just came across this, found the docs lacking hints on it and wanted
to prophylactically publish it here for you to consider if you use Qt4
views. A suggestion regarding this is on the way to TT.
If a view is set to SelectionBehavior::SelectRows,
QItemSelectionModel::selectedIndexes() returns one index for *every*
column in the selected rows, so there are rows*columns indices in the
returned list. Principally there's nothing wrong with this behaviour,
but IMHO chances are that, if SelectRows is set, one only wants one
index for every row. With the current behaviour you've got to collect
all row numbers in a set and skip the index if the rows attributes are
already changed, or whatever you want to do with the selection. This is
probably the same for SelectColumns behaviour.
Martin
--
To mail me, please remove the -NOSPAM- part from the adress above.
We, of good will, lead by the clueless, are trying to accomplish the
impossible for the ungrateful. We tried so much with so less for so long
that we're now qualified to achieve almost everything with nothing.
--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/
|
|