(C++) QTableView
February 24, 2017 · View on GitHub
(C++)
QTableView
QTableView is a Qt class to display a table using the model/view architecture. To display tables in a simpler, but less customizable way, you might want to use QTableWidget.
Examples
- QTableView example 1: table with three columns, one with an X
- QTableView example 2: table with ten columns of checkboxes
- QTableView example 3: table with checkboxes and editable text
- QTableView example 4: custom data
- QTableView example 5: simple custom data
- QTableView example 6: two views on one model
- QTableView example 7: two views on one model with a custom data type
- QTableView example 8: table with checkboxes and editable text using a custom model
- QTableView example 9: two tables with checkboxes and editable text using a custom model
- QTableView example 10: two tables with checkboxes and editable text using a custom model and a custom data type