Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Model/View with complex data
Forum Updated to NodeBB v4.3 + New Features

Model/View with complex data

Scheduled Pinned Locked Moved Unsolved Qt for Python
1 Posts 1 Posters 189 Views
  • 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.
  • Kin SapalotK Offline
    Kin SapalotK Offline
    Kin Sapalot
    wrote on last edited by
    #1

    Hello everyone,

    New user of Qt, I begin to discover the many possibilities but there is a point which worries me for the project I wish to develop.

    The data are stored in a SQL database and, among them, an "object" is distributed in 3 different tables (A, B, C), with references to other tables (X, Y, Z), that can be represented as follows:

    2022-07-21 12_53_14-Classeur1 - Excel.png

    One A can have many B and each B can also have unknown numbers of C.

    These should be presented to the user in this form:

    2022-07-21 12_54_11-Classeur1 - Excel.png

    The view has to be searchable (should show whole "line" if found into), but not sortable. In place editing will be great but not necessary.

    I don’t know wich kind of View or Widget I Should use…
    Do I need a QTableView with a QSqlRelationnalTableModel ? Or a QTableWidget ?
    Maybe a QTree(View/Widget) ? What are QConcatenateTablesProxyModel ? And other Proxy classes ?

    As you can read, I’m really confused with all this complex part of the Qt Framework… even if I already read lots of tutorials about this.

    Thanks for your help, I just need to know how to start my project right so I don't waste too much time.

    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