[Qt-interest] How can I select a specific cell from QTableView ?
David Boosalis
david.boosalis at gmail.com
Sun Aug 2 11:26:02 CEST 2009
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 at mhayk.com.br> 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 at mhayk.com.br
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list