Results 1 to 2 of 2

Thread: How to get row no in sqlmodel

  1. #1
    Join Date
    Sep 2010
    Posts
    4
    Qt products
    Qt4
    Platforms
    Symbian S60

    Default How to get row no in sqlmodel

    Hi,

    I am new to Qt. I have successfully created a database table using QSqlRelationalTablemodel also able to view the table.My requirement is to get the row number by giving the field name which is present in that row .For example ,

    This is my tabel :

    personid personname country
    ------------------------------------
    101 Alice US
    102 Bob India


    If I give the filed name "Alice" , I should get the row no : 1. can you pls help me, how to do that? If possible pls give me the code snippet also.

    Thanks & Regards,
    Raju

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: How to get row no in sqlmodel

    Closed because of double posting.

Similar Threads

  1. Automatic updating of SQLmodel
    By otternase in forum Qt Programming
    Replies: 2
    Last Post: 5th June 2010, 21:21

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.