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. Cannot run SQL in release mode, but I can in debug mode..
Forum Updated to NodeBB v4.3 + New Features

Cannot run SQL in release mode, but I can in debug mode..

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 251 Views
  • 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.
  • B Offline
    B Offline
    Baturtoraman
    wrote on last edited by Baturtoraman
    #1

    I am using Visual Studio 19. In release mode, the program gives warning like this:

    QSqlDatabase: QPSQL driver not loaded
    QSqlDatabase: available drivers:
    Could not open connection!
    "Driver not loaded Driver not loaded"
    

    However it works pretty well in debug mode. How can I solve this problem?

    JonBJ 1 Reply Last reply
    0
    • B Baturtoraman

      I am using Visual Studio 19. In release mode, the program gives warning like this:

      QSqlDatabase: QPSQL driver not loaded
      QSqlDatabase: available drivers:
      Could not open connection!
      "Driver not loaded Driver not loaded"
      

      However it works pretty well in debug mode. How can I solve this problem?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Baturtoraman
      Start by setting environment variable QT_DEBUG_PLUGINS=1 and then running your program. See if that gives you more information about why it seemingly cannot find the driver in Release build though it can in Debug build.

      1 Reply Last reply
      2

      • Login

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