Results 1 to 3 of 3

Thread: Creating new QSqlDatabase

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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: Creating new QSqlDatabase

    Most likely you forget
    pro Code:
    1. QT += sql
    To copy to clipboard, switch view to plain text mode 
    in the pro file.

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

    ToddAtWSU (6th February 2011)

  3. #2
    Join Date
    Jan 2006
    Location
    Ohio
    Posts
    332
    Thanks
    37
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Creating new QSqlDatabase

    You are correct. I have not really used .pro files. I originally did everything by hand and with makefiles in UNIX and recently I have used Qt Integrator with Netbeans for Solaris, but they have check mark boxes to select which Qt libraries you need so I just check the SQL library in the properties and don't realize what it does in the background. Thanks for your help!

Similar Threads

  1. QSQLDatabase
    By hoshy in forum Qt Programming
    Replies: 5
    Last Post: 25th September 2009, 15:09
  2. QThread and QSqlDatabase
    By pdoria in forum Qt Programming
    Replies: 1
    Last Post: 6th March 2008, 03:25
  3. QSqlDatabase
    By Pragya in forum Qt Programming
    Replies: 3
    Last Post: 26th June 2007, 17:53
  4. QCoreApplication And QSqlDatabase
    By ball in forum Qt Programming
    Replies: 1
    Last Post: 24th May 2006, 07:58
  5. QSqlDatabase
    By raphaelf in forum Qt Programming
    Replies: 10
    Last Post: 10th May 2006, 15:15

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.