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. QtSqlQueryModel or QtSqlRelationalTableModel

QtSqlQueryModel or QtSqlRelationalTableModel

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 986 Views 1 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.
  • W Offline
    W Offline
    weblife
    wrote on last edited by
    #1

    Would there be a need to set relations with QSqlRelationalTableModel if my database already manages them? I have only one thought for why I should but wouldn't really know until I tested.

    It seems from a quick test once you start to include the QSqlTableModel which QSqlRelationalTableModel extends from; there is a big delay iteration time. I would think I would want to avoid this class if I don't need it and can get by on QSqlQueryModel. Overloading QSqlQueryModel so it can write to the database also would be the only feature I think I need that the relational model has; which I have learned to work around.

    Still learning these class types and I know there are hidden potentials to them also. Thought I should ask.

    Brandon Clark
    www.themindspot.com

    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