Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Extending QSqlRelationalTableModel
Forum Updated to NodeBB v4.3 + New Features

Extending QSqlRelationalTableModel

Scheduled Pinned Locked Moved Solved General and Desktop
21 Posts 7 Posters 4.8k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K kkmspb
    5 Jun 2022, 09:15

    @Panoss Hello! You ask right question.
    If you need a new functionality of QSqlRelationalTableModel than you should change this class and rebuild qt sources.

    K Offline
    K Offline
    kkmspb
    wrote on 3 Feb 2023, 17:04 last edited by
    #21

    @kkmspb

    Maybe 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.

    alt text

    1 Reply Last reply
    0

    21/21

    3 Feb 2023, 17:04

    • Login

    • Login or register to search.
    21 out of 21
    • First post
      21/21
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved