Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QSqlDatabase: QPSQL driver not loaded with PostgreSQL 12.0?
Forum Updated to NodeBB v4.3 + New Features

QSqlDatabase: QPSQL driver not loaded with PostgreSQL 12.0?

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 411 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.
  • MucipM Offline
    MucipM Offline
    Mucip
    wrote on last edited by
    #1

    Hi,
    When I download PostgreSQL 9.6 ODBC driver and put them in the D:\ProgramFiles\Qt\5.13.1\msvc2017_64\bin location than My program works OK and can connect the PostgreSQL 9.6 database.
    But when I download 12.0 ODBC files and put them in same above location than I got error QSqlDatabase: QPSQL driver not loaded!?
    What is the problem with PostgreSQL 12.
    Unfortunatelly I work on Windows. And if I can not solve this than I will install PostgreSQL 9.6. Because with 9.6 I can connect the database without problem.
    Regards,
    Mucip:)

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

      Hi,

      Did you check the error text you get from QSqlDatabase ?
      One other thing you can do is start your application with the QT_DEBUG_PLUGINS environment variable set to 1 to get more information related to the plugins.

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

      MucipM 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Did you check the error text you get from QSqlDatabase ?
        One other thing you can do is start your application with the QT_DEBUG_PLUGINS environment variable set to 1 to get more information related to the plugins.

        MucipM Offline
        MucipM Offline
        Mucip
        wrote on last edited by
        #3

        Dear @SGaist ,
        Thanks. I did not ınderstand but there are different set of psqlodbc-12.0-1 zip file in the website. I installed psqlodbc-12.0 from msi file on windows and path it to Qt and now everything is OK... Before I tryed to use zip pack but there are different files in both of this folders.

        Thanks a lot.

        regards,
        Mucip:)

        1 Reply Last reply
        0
        • MucipM Mucip

          Hi,
          When I download PostgreSQL 9.6 ODBC driver and put them in the D:\ProgramFiles\Qt\5.13.1\msvc2017_64\bin location than My program works OK and can connect the PostgreSQL 9.6 database.
          But when I download 12.0 ODBC files and put them in same above location than I got error QSqlDatabase: QPSQL driver not loaded!?
          What is the problem with PostgreSQL 12.
          Unfortunatelly I work on Windows. And if I can not solve this than I will install PostgreSQL 9.6. Because with 9.6 I can connect the database without problem.
          Regards,
          Mucip:)

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by
          #4
          This post is deleted!
          1 Reply Last reply
          0

          • Login

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