Results 1 to 2 of 2

Thread: QSql error with include in Visual Studio 2008

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

    Default QSql error with include in Visual Studio 2008

    Hi all,
    I have been studying Qt for a while and today I came accross a problem while learning Qt and Databases. I created a project in Visual Studio 2008. I made Business, Data Access Layer, and a Presentation Layer. Added classes, set implementation and started testing. So far so good. The first time i builded the app, no problem. Then i made a change to the code( added a new function ) and when I rebuilded the project it failed with the folloing error:
    Error 1 fatal error C1083: Cannot open include file: 'QSql': No such file or directory e:\Qt\Solution\PresentationLayer\main.cpp 6 PresentationLayer
    .
    Then I thougth it was from VS bug. So I restared it, but the problem existed. Then I made a brand new project and solution file and just included the <QSql> in the main() function without adding any other code and tried to build the project. The problem still existed. Can anyone give me an advice what to do to fix it? Thank you in advance

  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: QSql error with include in Visual Studio 2008

    It's called QtSql, Also make sure you have added sql to the QT qmake variable.

Similar Threads

  1. Replies: 1
    Last Post: 19th December 2011, 08:47
  2. Visual Studio 2008 and Qt
    By konx in forum Installation and Deployment
    Replies: 2
    Last Post: 22nd January 2010, 21:24
  3. How to use Qt with Visual Studio 2008?
    By N3wb in forum Installation and Deployment
    Replies: 2
    Last Post: 13th August 2009, 16:23
  4. Qt 4.3.2 + Visual studio 2008
    By moowy in forum Installation and Deployment
    Replies: 6
    Last Post: 6th December 2007, 06:41
  5. Replies: 2
    Last Post: 23rd November 2007, 17:44

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.