Results 1 to 1 of 1

Thread: run time error "driver not loaded" for sqlite.

  1. #1
    Join Date
    Feb 2010
    Posts
    20
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default run time error "driver not loaded" for sqlite.

    i m getting the error "driver not loaded" when running the application from a folder (say release/bin) but while running the same exe from a sub directory called sqldrivers(where i have put the drivers copied from qt/plugins/sqldrivers) under it , its running fine.

    i have copied the the contents of sqldrivers to release/bin and tried to run that exe. again the same error.

    i have other exes that uses sqlite and running fine from the same location.due to many reasons i want my exe at realease/bin.

    what might be the problem?

    being precise the error message is like this:
    dbLocation = "c:\path\to\database.db"
    QSQLdatabase: QSLITE driver not loaded.
    QSQLdatabase: available drivers:
    QSQLdatabase: an instance of QCoreApplication is needed for loading the driver plugins



    Notes: I m using qt 4.6.1 on Windows XP with VS compiler.
    the exes are qt testcases, that i want to run.

    thanks in advance.
    Last edited by netmat; 2nd August 2010 at 06:58.

Similar Threads

  1. "Driver not loaded!"
    By bangqianchen in forum Qt Programming
    Replies: 13
    Last Post: 22nd July 2010, 15:03
  2. Replies: 1
    Last Post: 24th April 2010, 04:43
  3. Replies: 4
    Last Post: 10th November 2009, 20:48
  4. The strange problem:"QSqlDatabase: QMYSQL driver not loaded"
    By osmanthus in forum Installation and Deployment
    Replies: 2
    Last Post: 22nd January 2009, 16:12
  5. SQlite driver not loaded error
    By ibergmark in forum Installation and Deployment
    Replies: 2
    Last Post: 17th March 2008, 02:09

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.