Results 1 to 4 of 4

Thread: Refresh QSqlRelation

  1. #1
    Join Date
    Jan 2008
    Posts
    39
    Thanks
    10
    Qt products
    Qt4
    Platforms
    Windows

    Default Refresh QSqlRelation

    Hello
    How do I refresh a QSqlRelation without refreshing the entire QSqlRelationalTableModel?

    I want to allow a user to edit a QSqlRelationalTableModel including adding another record to one of its QSqlRelations.

    Thanks in advance.

  2. #2
    Join Date
    Jan 2008
    Posts
    39
    Thanks
    10
    Qt products
    Qt4
    Platforms
    Windows

    Unhappy Re: Refresh QSqlRelation

    Is anyone able to help me with this ??

  3. #3
    Join Date
    Mar 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Refresh QSqlRelation

    and me...

  4. #4
    Join Date
    May 2018
    Posts
    1

    Default Re: Refresh QSqlRelation

    I see the thread is old, but i post the answer none the less.

    myModel->relationModel(keyColumn)->select();

Similar Threads

  1. how can I refresh QSqlQueryModel?
    By hashb in forum Qt Programming
    Replies: 3
    Last Post: 20th June 2009, 04:39
  2. Replies: 4
    Last Post: 11th December 2008, 18:35
  3. Can't seem to get QGraphicsView to refresh
    By smahnken in forum Qt Programming
    Replies: 18
    Last Post: 29th August 2008, 09:32
  4. QTableView refresh problem
    By tebessum in forum Qt Programming
    Replies: 3
    Last Post: 29th December 2006, 12:22
  5. Refresh QDataTable
    By shamik in forum Qt Programming
    Replies: 25
    Last Post: 1st December 2006, 06:04

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.