Extending QSqlRelationalTableModel
-
@Panoss Hello! You ask right question.
If you need a new functionality of QSqlRelationalTableModel than you should change this class and rebuild qt sources.wrote on 3 Feb 2023, 17:04 last edited byMaybe you can see our free Qt project (4.8.1, Windows).
This project contains several classes inherited from the base classes QSqlTableModel and QTableView.
The PblSqlRelationalTableModel class is inherited from QSqlTableModel.
The PblTableView class is inherited from QTableView.
As a result, a combining class PblTableDlg was created with the composition PblTableView and PblSqlRelationalTableModel.
The QTableView class contains full functionality for managing a database table: creating, copying, deleting rows.
There is a search, selection by value. Fields in the form of combobox, checkbox,...
External links and substitutions from other tabs work automatically.Everything is configured simply in one configuration file config.cpp .
All three editing strategies are supported.
21/21