qt-interest@trolltech.com
[Top] [All Lists]

Re: [Qt-interest] How can I select a specific cell from QTableView ?

Subject: Re: [Qt-interest] How can I select a specific cell from QTableView ?
From: Mhayk Whandson
Date: Sun, 2 Aug 2009 12:16:56 -0400
Hi David,

I tried your tip and the specific cell from column just stay
highlight, I think that function "select()" should select the cell too
but It just select highlight. Are you have other idea ?

On Sun, Aug 2, 2009 at 5:26 AM, David Boosalis<david.boosalis@xxxxxxxxx> wrote:
> This might help you, haven't tired it though
>
> QAbstractItemModelÂÂ*model =myTableView->model();
> if (model->hasIndex(row,column) {
> ÂQModelIndex index = model->index(row,column);
> ÂQItemSelectionModel *selectModel =Â myTableView->selectionModel();
> ÂselectModel->select(index,QItemSelectionModel::SelectCurrent);
> }
>
>
>
>
> On Sun, Aug 2, 2009 at 12:52 AM, Mhayk Whandson <eu@xxxxxxxxxxxx> wrote:
>>
>> Hi all,
>>
>> I would like to select a specific cell from QTableView to use the
>> function keyboardSearch(). Can you help me ?
>>
>> best regards,
>>
>> []'s
>>
>> --
>> Mhayk Whandson
>> Linux User #413723
>> E-mail: eu@xxxxxxxxxxxx
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest@xxxxxxxxxxxxx
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>



-- 
Mhayk Whandson
Linux User #413723
E-mail: eu@xxxxxxxxxxxx

_______________________________________________
Qt-interest mailing list
Qt-interest@xxxxxxxxxxxxx
http://lists.trolltech.com/mailman/listinfo/qt-interest
<Prev in Thread] Current Thread [Next in Thread>