If you have up to a hundred or maybe several hundred items in a table, use QTableWidget .
If you have too many elements (about a thousand), go to QTableView and study the model representation .
The reason I recommend QTableWidget is because you are new. All you have to do is create a widget and use setCellWidget() , and you're done.
If you have thousands of rows, you will have to draw widgets yourself using QStyledItemDelegate , which will draw widgets inside your QTableView . This is a very painful thing, but not around it. The reasons you can find here .
source share