Results 1 to 3 of 3

Thread: Qt-Sqlite problem

  1. #1
    Join Date
    Jun 2010
    Posts
    1
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Default Qt-Sqlite problem

    Hello,

    I have a problem with sqlite. I compile qt for my embedded device, then run an application from examples/sql directory. The problem is that, the application can open the database, but cannot execute any query. I did not understand the exact problem, but what ever I did, did not solve the problem. Did anyone meet a problem like this before, or do you have any idea? Thanks for your replies..

    -emre

  2. #2
    Join Date
    Oct 2009
    Posts
    16
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Qt-Sqlite problem

    which qt version our are using, i am usnig qt4.5.3 fro my embedded device and sqlite for my embedded application is working fine. which example application our using on our embedded device

  3. #3
    Join Date
    Oct 2009
    Posts
    66
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11

    Thumbs up Re: Qt-Sqlite problem

    This problem can be because of query not set properly or query syntax not according to the sql format, what u can do is check it using
    Qt Code:
    1. query.exec();
    2. query.lastError().type();
    To copy to clipboard, switch view to plain text mode 
    This will give you the error status, see the QSqlError class for details for the type of error returned and then take the appropriate action

Similar Threads

  1. SQLite encoding problem
    By cevou in forum Qt Programming
    Replies: 3
    Last Post: 27th September 2009, 21:37
  2. Sqlite & QSqlDatabase problem
    By rsimone in forum Newbie
    Replies: 5
    Last Post: 29th July 2009, 21:52
  3. Problem regarding SQLITE commands
    By sudheer168 in forum Qt Programming
    Replies: 1
    Last Post: 18th December 2008, 08:09
  4. SQLite Problem
    By natbobc in forum Qt Programming
    Replies: 5
    Last Post: 8th November 2007, 15:31
  5. Problem with SqLite and Qt
    By ad5xj in forum Newbie
    Replies: 26
    Last Post: 5th June 2007, 01:53

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.