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

David Boosalis david.boosalis at gmail.com
Fri Jul 31 00:31:16 CEST 2009


Have not tried it but the documentation for keyboardSearch() says it will
select the item in the table. So  you may want to investigate
QTableView::selectionModel()
With a handle to this model you can get the currentIndex.



On Thu, Jul 30, 2009 at 12:14 PM, Mhayk Whandson <eu at mhayk.com.br> wrote:

> Hi all,
>
> I was trying to search something in the model which is associated with
> QTableView, so I found the function keyboardSearch(QString) but this
> function just find in the column selected from the QTableView. How can
> I select a specific cell from QTableView ? I already tryed use the
> function selectColumn(int) but nothing happened, can you help me ?
>
> []'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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090730/00c43464/attachment.html 


More information about the Qt-interest-old mailing list