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. QSqlRelationalTableModel & Sample Values
Forum Updated to NodeBB v4.3 + New Features

QSqlRelationalTableModel & Sample Values

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 891 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.
  • UndeadBlowU Offline
    UndeadBlowU Offline
    UndeadBlow
    wrote on last edited by
    #1

    Hello everyone! Khm, here I am Sqlite database (there is part we are interested in):
    !http://pastexen.com/i/Yk9KGB93.png(Part of base in Toad Data Modeler)!
    I'm using in my project QSqlRelationTableModel - Qt Sql model-interview. So, for example I'm opened table StoringItems and set up relations with metod QSqlRelationTableModel::setRelation(). Ok, but problem is that if I will change (see example) GeForce to Intel Core its type (sory its on russian, on screnshot there are two types: Videocards and Processors) will not change on type Processor from Videocards because that information is in another table. It is my question and problem: How can I set up such relations in QSqlRelationTableModel? Or I can't and I need to change QSqlRelationTableModel to level below and use queries.
    !http://pastexen.com/i/8aE6ESW2.png(Example)!
    P.S. And one more thing, how can I configure model that when you click on the field with the date opened calendar to choosing? Only with catching events?

    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