Results 1 to 4 of 4

Thread: QSqlDatabase

  1. #1
    Join Date
    Feb 2007
    Posts
    32
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default QSqlDatabase

    Hi all,
    I am trying
    QSqlDatabase::isDriverAvailable("QODBC3")
    Every time the above statement is returning false
    Can anyone help me in this?
    Thanks & regards
    Pragya

  2. #2
    Join Date
    Feb 2007
    Posts
    32
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QSqlDatabase

    out of the listed driver names only "QSQLITE" is having true value.
    Can anyone tell that why other drivers are returning false value.

  3. #3
    Join Date
    Aug 2006
    Posts
    26
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QSqlDatabase

    Hey Pragya,

    It doesn't look like the QODBC3 driver is listed as a current available driver here:
    http://doc.trolltech.com/4.3/qsqldat...QSqlDatabase-3
    "And no one said 'don't use QPrinter to bake muffins'."

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,518 Times in 1,388 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QSqlDatabase

    Quote Originally Posted by Pragya View Post
    Can anyone tell that why other drivers are returning false value.
    One has to configure and build Qt with support for particular SQL drivers. See SQL Database Drivers for SQL driver building instructions.
    J-P Nurmi

Similar Threads

  1. QSqlDatabase: QMYSQL driver not loaded
    By onder in forum Newbie
    Replies: 12
    Last Post: 29th March 2017, 15:43
  2. QSqlDatabase Time out no network to long....
    By patrik08 in forum Qt Programming
    Replies: 1
    Last Post: 10th March 2007, 01:41
  3. get error number from qsqldatabase
    By mandal in forum Qt Programming
    Replies: 1
    Last Post: 19th January 2007, 11:20
  4. QCoreApplication And QSqlDatabase
    By ball in forum Qt Programming
    Replies: 1
    Last Post: 24th May 2006, 08:58
  5. qsqldatabase does not sense db disconnect
    By rburge in forum Qt Programming
    Replies: 0
    Last Post: 9th March 2006, 19:59

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.