Results 1 to 4 of 4

Thread: QSqlRelationalTableModel setRelation() unable to select()

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2008
    Posts
    491
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11
    Thanks
    12
    Thanked 142 Times in 135 Posts

    Default Re: QSqlRelationalTableModel setRelation() unable to select()

    Use "table_name.column_name" in your filter.

  2. The following 2 users say thank you to norobro for this useful post:

    Armin (1st February 2010), kenez (16th December 2010)

  3. #2
    Join Date
    Jan 2010
    Posts
    11
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    5

    Default Re: QSqlRelationalTableModel setRelation() unable to select()

    Thanks a lot norobro, now it works

  4. #3
    Join Date
    Dec 2010
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11
    Thanks
    1

    Default Re: QSqlRelationalTableModel setRelation() unable to select()

    Thank you very much norobro, your post was very helpful!

Similar Threads

  1. setRelation and NULL in ID
    By Auryn in forum Qt Programming
    Replies: 4
    Last Post: 26th May 2015, 16:20
  2. Unable to modify QSqlRecord in QSqlRelationalTableModel
    By pippo42 in forum Qt Programming
    Replies: 1
    Last Post: 20th March 2010, 23:17
  3. QSqlRelationalTableModel settable unable to find
    By nietzsche in forum Qt Programming
    Replies: 0
    Last Post: 25th May 2009, 22:51
  4. Replies: 1
    Last Post: 7th June 2008, 18:29
  5. Unable to fetch data when searching through select query
    By sinha.ashish in forum Qt Programming
    Replies: 3
    Last Post: 10th April 2008, 14:06

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
  •  
Qt is a trademark of The Qt Company.