Results 1 to 5 of 5

Thread: Problem: "QSqlDatabase: QPSQL driver not loaded" (Windows OS)

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2009
    Location
    Gran Canaria, Canary Islands, Spain
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Problem: "QSqlDatabase: QPSQL driver not loaded" (Windows OS)

    Hi, I have the following problem trying to connect to a PostgresSQL database with PostgreSL 8.3:

    Starting C:/Users/Alberto/Desktop/qttest/test1/debug/test1.exe...
    QSqlDatabase: QPSQL driver not loaded
    QSqlDatabase: available drivers: QSQLITE QODBC3 QODBC


    In linux (ubuntu) it works, but not in Windows. I've googled a lot and actually I've found some "solutions", the problem is that I don't know how to carry out them. Anyway most of those solutions didn't really work, cause threads just ended up opened (with no final solution).

    The solution appears to be nice is the one explained in this post (only 5 short replies):

    http://www.qtcentre.org/forum/f-inst...ver-11171.html

    And it's the following (if I've understood it right):

    1. Use Dependency Walker with X (don't know how to use it, or the file I have to use it with)
    2. Copy X .dll files into the folder where the executable is placed (don't know which .dll files exactly)

    So the problem is that I don't understand it, or just don't know what do I have to do exactly. ¿Could any of you please guide me with this issue?.

    Additional data that may be useful:
    - Qt version: Qt 4.5.1 (the current newest one: qt-sdk-win-opensource-2009.02.exe, it also includes Qt-Creator 1.1.0 and MinGW 5.1.4)
    - OS: Windows Vista
    - PostgreSQL version: 8.3.7

    Thanks in advance,

    Alberto.
    Last edited by Alberto++; 3rd May 2009 at 20:04.

Similar Threads

  1. Replies: 19
    Last Post: 3rd April 2009, 23:17
  2. QPSQL driver in windows
    By brevleq in forum Installation and Deployment
    Replies: 31
    Last Post: 14th December 2007, 12:57

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.