Results 1 to 4 of 4

Thread: QSqlDataBase file not found

  1. #1
    Join Date
    Jan 2009
    Posts
    18
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QSqlDataBase file not found

    hi,

    I am QSqlDataBase for Connecting the Sqlite.It shows error

    1."Cannot open include file QSqlDatabase".
    2."Cannot open include file QtSql".

    I'm using VS2005.

    please try to help regarding this issue.

  2. #2
    Join Date
    Dec 2006
    Posts
    849
    Thanks
    6
    Thanked 163 Times in 151 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QSqlDataBase file not found

    add in your .pro file:
    Qt Code:
    1. QT += sql
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Jan 2009
    Posts
    18
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Unhappy Re: QSqlDataBase file not found

    hi caduel,


    i'm just copying the code from qt examples cachedtable to my new project .it showing the errror as

    1.cannot include QSqlDataBase,QtSql.

    if i add this QT+=sql in .pro .

    while building the project it get vanish.


    I'm using Visual Studio 2005 .


    please help me regarding this issue.


    regards

    S.Mohammad Hussain,
    Last edited by sdastagirmca; 5th February 2009 at 07:00.

  4. #4
    Join Date
    Dec 2006
    Posts
    849
    Thanks
    6
    Thanked 163 Times in 151 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: QSqlDataBase file not found

    Sorry, I don't use VisualStudio.
    You need to find where to set that option in your project configuration.

Similar Threads

  1. Releasing database file with QSqlDatabase
    By JPNaude in forum Qt Programming
    Replies: 24
    Last Post: 24th May 2011, 09:33
  2. Visual Studio 2005 Express
    By Muzz in forum Installation and Deployment
    Replies: 22
    Last Post: 6th November 2008, 06:21
  3. Program crashes with assert error in xcb_lock.c
    By Valheru in forum Qt Programming
    Replies: 3
    Last Post: 18th November 2007, 19:56
  4. KDE 3.5.0 crash while opening project
    By MarkoSan in forum KDE Forum
    Replies: 2
    Last Post: 19th October 2007, 16:21
  5. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 15: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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.