Results 1 to 7 of 7

Thread: SQLite with Qt4

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Nov 2008
    Location
    Częstochowa/Poland
    Posts
    50
    Thanks
    2
    Thanked 11 Times in 11 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: SQLite with Qt4

    Try using the prepare and bindValue methods of QSqlQuery.
    Qt Code:
    1. qry.prepare("SELECT Minia, Format FROM Dane where Id=:id");
    2. qry.bindValue(":id",id);
    To copy to clipboard, switch view to plain text mode 
    sorry wrong answer.
    I can't think of anything that would preform the auto incrementation You would like to achieve. I always end up writing it by my self selecting the maximal value and incrementing it manually..
    Last edited by Grimlock; 4th September 2009 at 16:25.

  2. The following user says thank you to Grimlock for this useful post:

    MIH1406 (3rd June 2010)

Similar Threads

  1. access SQlite from Qt (Windows & Linux)
    By Qt Coder in forum Qt Programming
    Replies: 13
    Last Post: 22nd July 2009, 10:07
  2. steps to connect to SQLite from Q
    By Qt Coder in forum Qt Programming
    Replies: 3
    Last Post: 8th July 2009, 12:12
  3. How to Run Sqlite in Windows Mobile
    By Comptrol in forum Qt Programming
    Replies: 0
    Last Post: 26th June 2009, 12:19
  4. Qt SQLite user functions
    By cevou in forum Qt Programming
    Replies: 1
    Last Post: 10th March 2009, 19:43
  5. sqlite version in Qt
    By janus in forum Newbie
    Replies: 4
    Last Post: 5th February 2009, 14:18

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.