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 5.4k 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.
  • kkmspbK kkmspb

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

    kkmspbK Offline
    kkmspbK Offline
    kkmspb
    wrote on 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

    • Login

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