Qt 6.12 LTS is out! See what's new in the release
blog
How to edit QtableWidget?
General and Desktop
3
Posts
3
Posters
1.6k
Views
1
Watching
-
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/