Not sure what "Beginner" means, I have been using Qt for many years
I have a working QTableView with QSqlRelationalTableModel and custom QHeaderView that functions well but without the two features shown in the attached image.
Namely:
- the "expanded view" between rows 3 and 4 (row 3 selected)
- the "Session" grouping shown at line 9 (that requires drag-n-drop functionality to "ungroup" items)
I am aware of classes such as QAbstractTableModel, but have extremely limited experience with them.
I am thinking that what is required is a custom QSqlRelationalDelegate but the documentation for it would suggest that it is intended for items (column data) rather than rows.
I was considering a QTableWidget with custom QTableWidgetItems, (which I have experience with), but I currently enjoy the benefits of the great integration of the QTableView, QSqlRelationalTableModel and custom QHeaderView that works so well...
I would like some suggested approaches to providing the missing functionality.
Bookmarks