QTableWidget is a Qt class providing an item-based table view with a default model.
Table widgets provide standard table display facilities for applications. The items in a QTableWidget are provided by QTableWidgetItem.
If you need to use your own data model, then QTableView is preferrable.
The official Qt documentation can be found here for Qt 4.8 and here for Qt 5.