[Qt-interest] selectedRows broken in 4.5.0?
Andreas Pakulat
apaku at gmx.de
Thu Mar 12 13:16:58 CET 2009
On 12.03.09 12:39:20, Acenes wrote:
> The row is first selected by mouse (selection is indicated with blue
> background of the row), then an action button is clicked to trigger the slot
> where the issue is.
>
> By debugging I saw that QItemSelectionModel::isRowSelected is no longer
> returning true in 4.5.0, so the issue seems to be in there.
>
> I made both columns visible for a test, but that didn't change anything.
> The column (which is hidden normally) is also disabled, so maybe that is
> causing the problem - did not check that yet.
That could possibly explain what you're seeing Qt4.5 added a
isItemSelectable and isItemEnabled check into isRowSelected. I don't quite
understand the logic of the method, but thats the only change. It still
feels like a bug that disabled rows are considered for this, i.e. a row is
only selected if all of its columns are enabled and selected. So I suggest
to send a bugreport to QtSoftware with a small example that disables one
column.
Andreas
--
You love peace.
More information about the Qt-interest-old
mailing list