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. Editable table view using QSqlRelationalTableModel with specifications for foreign keys
Forum Updated to NodeBB v4.3 + New Features

Editable table view using QSqlRelationalTableModel with specifications for foreign keys

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.8k 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.
  • G Offline
    G Offline
    galrub
    wrote on last edited by
    #1

    Hello all,

    I'm trying to create an editable table view that, when editing the relational cells, will bring only specific options in the combobox.

    for example, let say there are 'STUDENT' table, in that table there is foreign key to a 'CARD' table, and, when editing this column in the table view, we can only choose unused cards according to some select.

    any ideas?

    Thanks,
    G.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andre
      wrote on last edited by
      #2

      Perhaps use a custom delegate?

      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