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

Qt-interest Archive, May 2007
QTableView - Selecting Row with Keyboard


Message 1 in thread

When I use the keyboard, say the arrow keys, to select cells in a 
QTableView object, what signals are being emitted? I have tried to 
capture on activated but that does not seem to be what I want.

Thanks
Mike Jackson

--
 [ signature omitted ] 

Message 2 in thread

Hi Mike,

I believe the class you are looking for is QItemSelectionModel.

QItemSelectionModel provides you with the selectionChanged() signal 
(documentation: 
http://doc.trolltech.com/4.3/qitemselectionmodel.html#selectionChanged). I

Hope this helps,
K.

P/s -  As far as I know, QTableView objects have a selection model by 
default, otherwise you can set it using setSelectionModel().



Mike Jackson wrote:
> When I use the keyboard, say the arrow keys, to select cells in a 
> QTableView object, what signals are being emitted? I have tried to 
> capture on activated but that does not seem to be what I want.
>
> Thanks
> Mike Jackson
>
> -- 
> 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/
>

--
 [ signature omitted ]