Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QPSQL driver not loaded QT 5.13.2
Qt 6.12 LTS is out! See what's new in the release blog

QPSQL driver not loaded QT 5.13.2

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 856 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • AmrCoderA Offline
    AmrCoderA Offline
    AmrCoder
    wrote on last edited by
    #1

    hello
    I tried to connect to PostgresSQL using QT 5.13.2 Mingw32 on windows, I use the simple code to make the connection but i got the common Error

    QSqlDatabase: PSQL driver not loaded
    QSqlDatabase: available drivers: QSQLITE QODBC QODBC3 QPSQL QPSQL7
    "Driver not loaded Driver not loaded"
    

    I copy all the dlls needed to my EXE folder using WindDeploy and then download Windows Binaries of postgresql from it's website Here, I download 9.3.25 Version and copy the dlls

    libeay32.dll
    libintl.dll
    libpq.dll
    ssleay32.dll
    

    to my folder that has the EXE, but i still got the same problem i don't know why, and almost all the solution that solved this problem in the past was saying this solution to copy the dlls from the PostgresSQL folder to your EXE folder, i dont know if i need maybe a higher version of PostgresSQL binaries for windows for a new dlls, I go from PostgresSQL version 9.2 to 9.10 and no dll helped me.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Start your application with the QT_DEBUG_PLUGINS environment variable set to 1. It will give you more information about what is happening.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Apart from this take a look what Dependency Walker (or Dependencies-Gui) is telling you about missing libraries.

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt
        • Unsolved