[Qt-interest] get cell value of qtablewidget

Donal O'Connor donaloconnor at gmail.com
Sun Aug 2 18:48:39 CEST 2009


QString value = m_myTableWidget->item(row,column)->text(); if you are
storing text.

Haven't test it but looks like that from the docs.

On Sun, Aug 2, 2009 at 5:38 PM, mierdatutis mi <mmm286 at gmail.com> wrote:

> Hi,
>
> I would like to know how could I get cell value  of qtablewidget when I do
> click in a cell. I do a signal when I do click in a cell but I don't know
> how get the cell value to assign it to a variable.
>
> Many thanks and sorry for my english!
>
>
> _______________________________________________
> 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/20090802/48e771a7/attachment.html 


More information about the Qt-interest-old mailing list