Results 1 to 2 of 2

Thread: My compiler can't find QtSql

  1. #1
    Join Date
    Sep 2010
    Posts
    1
    Thanks
    1

    Default My compiler can't find QtSql

    Hi, I'm very newbie, I learn to program in C++ too many years ago, so I'm a little stock here. I'm copying the code from Sqlbrowser demo. So, I need help with this issue.

    This is my code:

    Qt Code:
    1. #include <QtSql>
    2. #include <QtCore>
    3. #include <QtGui>
    4. #include "browser.h"
    To copy to clipboard, switch view to plain text mode 

    And I have a lot of error during the compiling, because the compiler can't find QtSql file, but this file is into the C:\Archiv...\...qt\include\QtSql\

    Thanks

  2. #2
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: My compiler can't find QtSql

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

  3. The following user says thank you to Zlatomir for this useful post:

    codymarc (1st October 2010)

Similar Threads

  1. advice on using QDataWidgetMapper in QtSql
    By schnitzel in forum Newbie
    Replies: 2
    Last Post: 5th June 2010, 08:33
  2. The compiler error:"cannot find -lQtGuid4"
    By osmanthus in forum Installation and Deployment
    Replies: 1
    Last Post: 7th January 2009, 07:58
  3. about Windows Ado and QtSql
    By lutins in forum General Programming
    Replies: 1
    Last Post: 1st September 2008, 21:04
  4. problem of QtSql
    By cresthong in forum Qt Programming
    Replies: 1
    Last Post: 17th July 2008, 18:48
  5. Compiler can't find #include<QSqlDatabase>
    By Arpan in forum Qt Programming
    Replies: 6
    Last Post: 17th February 2006, 14:05

Tags for this Thread

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.