Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The qtablewidgetitem command creates a QTableWidgetItem object. These are used to populate a qtablewidget. The newly created object is returned to the caller. There is one table item for each cell in the table.

...

The above example inserts two items into the table at positions (0, 0) and (0, 1). Note how the item text is later obtained through the qtext command.