How to edit QtableWidget?
-
How I can put QString text in place(int height int width) of QTtableWidget.
For example I want put "Hello world" in (1,1) in my QTableWidget object.
I tried it
@this->tableWidget->setItem(1,1,QString("Hello"));@
and got an error -
The third parameter of "QTableWidget::setItem()":http://qt-project.org/doc/qt-4.8/qtablewidget.html#setItem is NOT QString, it should be "QTableWidgetItem":http://qt-project.org/doc/qt-4.8/qtablewidgetitem.html
-
See my question over here:
http://qt-project.org/forums/viewthread/26334/