Results 1 to 5 of 5

Thread: SQL Convienience model or custom abstract model?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2014
    Posts
    3
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: SQL Convienience model or custom abstract model?

    Sorry about the repeated questions, perhaps I should get a book.

    In this instance, the one view, that is, the screen will display information from all three tables (a complaint will appear, with batch and product details), so I should make the necessary columns from "Batch" and "Product" be columns in the Complaint model, and just have that one model retrieve all the necessary information, correct?

    I do have one last (for now) question, which may not suit this thread.

    What is the best way (or where can I find documentation to that effect), for implementing QSqlRelation like mapping for Abstract models? That is, I wish for the Batch, to have a combobox listing all available batches the user can choose from. With the convienience classes this is easy, but I'm assuming that the abstract table model has no such support, and I must do this myself?
    Last edited by Borax Man; 20th October 2014 at 10:57. Reason: updated contents

Similar Threads

  1. Replies: 1
    Last Post: 29th August 2013, 05:41
  2. Replies: 9
    Last Post: 14th February 2013, 19:39
  3. Custom Model and Proxy Model
    By frank100 in forum Qt Programming
    Replies: 1
    Last Post: 20th December 2010, 14:30
  4. Replies: 0
    Last Post: 1st February 2010, 11:00
  5. Choice between Standard- and Abstract Item Model
    By hunsrus in forum Qt Programming
    Replies: 2
    Last Post: 16th March 2009, 15:14

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.