Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, May 2008
[Fwd: Re: AW: Problem with SIGNAL currentCellChanged(int, int, int, int) in QTableWidget]


Message 1 in thread

Peter Prade wrote:
>> I came across this peculiar problem with SIGNAL 
>> currentCellChanged(int, int, int, int)  in QTableWidget.
> 
> While it could be argued that the signal is wrong (you should send a
> mail to qt-bugs or use the form
> http://trolltech.com/developer/bugreport-form), why do you store the
> "selectedRow" at all?
> 
> Instead use tw->currentRow() or tw->selectionModel()->selectedRows().

Even currentRow() gives wrong row number of the row which is selected.
What I mean is that the selection lies on first row (row 0) but the
currentRow() function gives result as 1 (row 1), when actually it should
be 0 (row 0).

Same is the case with  tw->selectionModel()->selectedRows().

Rajen.

--
 [ signature omitted ]