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. PostgreSQL client Windows Deployment Nightmare "Driver Not Loaded"
Forum Updated to NodeBB v4.3 + New Features

PostgreSQL client Windows Deployment Nightmare "Driver Not Loaded"

Scheduled Pinned Locked Moved Solved General and Desktop
32 Posts 6 Posters 10.0k Views 4 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.
  • Z Offline
    Z Offline
    zeroptr
    wrote on last edited by zeroptr
    #14

    0_1508323063555_application.png

    0_1508323080179_libpq_dll.png 0_1508323103115_qsqlpsql_dll.png

    Linux Mint 20.04 64 Bit QT6.0.1

    S 1 Reply Last reply
    0
    • Z zeroptr

      0_1508323063555_application.png

      0_1508323080179_libpq_dll.png 0_1508323103115_qsqlpsql_dll.png

      S Offline
      S Offline
      Stoyan
      wrote on last edited by
      #15

      @zeroptr
      The necessary files for the latest PostgreSQL version are these:

      libeay32.dll
      libiconv-2.dll
      libintl-8.dll
      libpq.dll
      ssleay32.dll
      

      As you can see, Dependency Walker don't recognize one of them - "libiconv-2.dll". Probably because some of other files depend on it.

      Z 1 Reply Last reply
      1
      • S Stoyan

        @zeroptr
        The necessary files for the latest PostgreSQL version are these:

        libeay32.dll
        libiconv-2.dll
        libintl-8.dll
        libpq.dll
        ssleay32.dll
        

        As you can see, Dependency Walker don't recognize one of them - "libiconv-2.dll". Probably because some of other files depend on it.

        Z Offline
        Z Offline
        zeroptr
        wrote on last edited by
        #16

        @Stoyan libiconv-2.dll deployed the target machine all the time...

        is that a good idea to move ODBC ? for windows..

        Linux Mint 20.04 64 Bit QT6.0.1

        S 1 Reply Last reply
        0
        • Z zeroptr

          @Stoyan libiconv-2.dll deployed the target machine all the time...

          is that a good idea to move ODBC ? for windows..

          S Offline
          S Offline
          Stoyan
          wrote on last edited by
          #17

          @zeroptr
          From Qt documentation about ODBC:

          Note: You should use the native driver, if it is available, instead of the ODBC driver. ODBC support can be used as a fallback for compliant databases if no native driver is available.
          

          I don't understand this:

          libiconv-2.dll deployed the target machine all the time...
          

          Can you show all files placed in the folder for deployment?

          Z 1 Reply Last reply
          0
          • S Stoyan

            @zeroptr
            From Qt documentation about ODBC:

            Note: You should use the native driver, if it is available, instead of the ODBC driver. ODBC support can be used as a fallback for compliant databases if no native driver is available.
            

            I don't understand this:

            libiconv-2.dll deployed the target machine all the time...
            

            Can you show all files placed in the folder for deployment?

            Z Offline
            Z Offline
            zeroptr
            wrote on last edited by
            #18

            @Stoyan

            file structure is this

            E:\VikingUretim\DepQT492MSVC\AppSettings.ini
            E:\VikingUretim\DepQT492MSVC\D3Dcompiler_47.dll
            E:\VikingUretim\DepQT492MSVC\files.txt
            E:\VikingUretim\DepQT492MSVC\libeay32.dll
            E:\VikingUretim\DepQT492MSVC\libEGL.dll
            E:\VikingUretim\DepQT492MSVC\libGLESV2.dll
            E:\VikingUretim\DepQT492MSVC\libiconv-2.dll
            E:\VikingUretim\DepQT492MSVC\libintl-8.dll
            E:\VikingUretim\DepQT492MSVC\libpq.dll
            E:\VikingUretim\DepQT492MSVC\opengl32sw.dll
            E:\VikingUretim\DepQT492MSVC\Qt5Core.dll
            E:\VikingUretim\DepQT492MSVC\Qt5Core_o.dll
            E:\VikingUretim\DepQT492MSVC\Qt5Gui.dll
            E:\VikingUretim\DepQT492MSVC\Qt5PrintSupport.dll
            E:\VikingUretim\DepQT492MSVC\Qt5Sql.dll
            E:\VikingUretim\DepQT492MSVC\Qt5Svg.dll
            E:\VikingUretim\DepQT492MSVC\Qt5Widgets.dll
            E:\VikingUretim\DepQT492MSVC\ssleay32.dll
            E:\VikingUretim\DepQT492MSVC\vcredist_msvc2015_x86.exe
            E:\VikingUretim\DepQT492MSVC\VikingUretim.exe
            E:\VikingUretim\DepQT492MSVC\iconengines\qsvgicon.dll
            E:\VikingUretim\DepQT492MSVC\imageformats\qgif.dll
            E:\VikingUretim\DepQT492MSVC\imageformats\qicns.dll
            E:\VikingUretim\DepQT492MSVC\imageformats\qico.dll
            E:\VikingUretim\DepQT492MSVC\imageformats\qjpeg.dll
            E:\VikingUretim\DepQT492MSVC\imageformats\qsvg.dll
            E:\VikingUretim\DepQT492MSVC\imageformats\qtga.dll
            E:\VikingUretim\DepQT492MSVC\imageformats\qtiff.dll
            E:\VikingUretim\DepQT492MSVC\imageformats\qwbmp.dll
            E:\VikingUretim\DepQT492MSVC\imageformats\qwebp.dll
            E:\VikingUretim\DepQT492MSVC\platforms\qwindows.dll
            E:\VikingUretim\DepQT492MSVC\printsupport\windowsprintersupport.dll
            E:\VikingUretim\DepQT492MSVC\sqldrivers\qsqlite.dll
            E:\VikingUretim\DepQT492MSVC\sqldrivers\qsqlmysql.dll
            E:\VikingUretim\DepQT492MSVC\sqldrivers\qsqlodbc.dll
            E:\VikingUretim\DepQT492MSVC\sqldrivers\qsqlpsql.dll

            Linux Mint 20.04 64 Bit QT6.0.1

            S 1 Reply Last reply
            0
            • Z zeroptr

              @Stoyan

              file structure is this

              E:\VikingUretim\DepQT492MSVC\AppSettings.ini
              E:\VikingUretim\DepQT492MSVC\D3Dcompiler_47.dll
              E:\VikingUretim\DepQT492MSVC\files.txt
              E:\VikingUretim\DepQT492MSVC\libeay32.dll
              E:\VikingUretim\DepQT492MSVC\libEGL.dll
              E:\VikingUretim\DepQT492MSVC\libGLESV2.dll
              E:\VikingUretim\DepQT492MSVC\libiconv-2.dll
              E:\VikingUretim\DepQT492MSVC\libintl-8.dll
              E:\VikingUretim\DepQT492MSVC\libpq.dll
              E:\VikingUretim\DepQT492MSVC\opengl32sw.dll
              E:\VikingUretim\DepQT492MSVC\Qt5Core.dll
              E:\VikingUretim\DepQT492MSVC\Qt5Core_o.dll
              E:\VikingUretim\DepQT492MSVC\Qt5Gui.dll
              E:\VikingUretim\DepQT492MSVC\Qt5PrintSupport.dll
              E:\VikingUretim\DepQT492MSVC\Qt5Sql.dll
              E:\VikingUretim\DepQT492MSVC\Qt5Svg.dll
              E:\VikingUretim\DepQT492MSVC\Qt5Widgets.dll
              E:\VikingUretim\DepQT492MSVC\ssleay32.dll
              E:\VikingUretim\DepQT492MSVC\vcredist_msvc2015_x86.exe
              E:\VikingUretim\DepQT492MSVC\VikingUretim.exe
              E:\VikingUretim\DepQT492MSVC\iconengines\qsvgicon.dll
              E:\VikingUretim\DepQT492MSVC\imageformats\qgif.dll
              E:\VikingUretim\DepQT492MSVC\imageformats\qicns.dll
              E:\VikingUretim\DepQT492MSVC\imageformats\qico.dll
              E:\VikingUretim\DepQT492MSVC\imageformats\qjpeg.dll
              E:\VikingUretim\DepQT492MSVC\imageformats\qsvg.dll
              E:\VikingUretim\DepQT492MSVC\imageformats\qtga.dll
              E:\VikingUretim\DepQT492MSVC\imageformats\qtiff.dll
              E:\VikingUretim\DepQT492MSVC\imageformats\qwbmp.dll
              E:\VikingUretim\DepQT492MSVC\imageformats\qwebp.dll
              E:\VikingUretim\DepQT492MSVC\platforms\qwindows.dll
              E:\VikingUretim\DepQT492MSVC\printsupport\windowsprintersupport.dll
              E:\VikingUretim\DepQT492MSVC\sqldrivers\qsqlite.dll
              E:\VikingUretim\DepQT492MSVC\sqldrivers\qsqlmysql.dll
              E:\VikingUretim\DepQT492MSVC\sqldrivers\qsqlodbc.dll
              E:\VikingUretim\DepQT492MSVC\sqldrivers\qsqlpsql.dll

              S Offline
              S Offline
              Stoyan
              wrote on last edited by
              #19

              @zeroptr
              It looks that you have all files.
              Maybe they are of wrong type. Which versions of Qt and PostgreSQL are you using?
              They both must be of the same type 64-bit or 32-bit.
              Also, did you add in *.pro file this?

              QT += sql
              
              Z 1 Reply Last reply
              2
              • S Stoyan

                @zeroptr
                It looks that you have all files.
                Maybe they are of wrong type. Which versions of Qt and PostgreSQL are you using?
                They both must be of the same type 64-bit or 32-bit.
                Also, did you add in *.pro file this?

                QT += sql
                
                Z Offline
                Z Offline
                zeroptr
                wrote on last edited by
                #20

                @Stoyan
                yes sql added at pro file..

                Linux Mint 20.04 64 Bit QT6.0.1

                1 Reply Last reply
                0
                • Z Offline
                  Z Offline
                  zeroptr
                  wrote on last edited by
                  #21

                  can this help

                  
                  
                  Starting E:\VikingUretim\build-VikingUretim-Desktop_Qt_5_9_2_MSVC2015_32bit-Debug\debug\VikingUretim.exe...
                  QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms" ...
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qdirect2d.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qdirect2d.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "direct2d"
                          ]
                      },
                      "className": "QWindowsDirect2DIntegrationPlugin",
                      "debug": false,
                      "version": 329986
                  }
                  
                  
                  "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qdirect2d.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qdirect2dd.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qdirect2dd.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "direct2d"
                          ]
                      },
                      "className": "QWindowsDirect2DIntegrationPlugin",
                      "debug": true,
                      "version": 329986
                  }
                  
                  
                  Got keys from plugin meta data ("direct2d")
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qminimal.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qminimal.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "minimal"
                          ]
                      },
                      "className": "QMinimalIntegrationPlugin",
                      "debug": false,
                      "version": 329986
                  }
                  
                  
                  "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qminimal.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qminimald.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qminimald.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "minimal"
                          ]
                      },
                      "className": "QMinimalIntegrationPlugin",
                      "debug": true,
                      "version": 329986
                  }
                  
                  
                  Got keys from plugin meta data ("minimal")
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qoffscreen.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qoffscreen.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "offscreen"
                          ]
                      },
                      "className": "QOffscreenIntegrationPlugin",
                      "debug": false,
                      "version": 329986
                  }
                  
                  
                  "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qoffscreen.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qoffscreend.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qoffscreend.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "offscreen"
                          ]
                      },
                      "className": "QOffscreenIntegrationPlugin",
                      "debug": true,
                      "version": 329986
                  }
                  
                  
                  Got keys from plugin meta data ("offscreen")
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qwindows.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qwindows.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "windows"
                          ]
                      },
                      "className": "QWindowsIntegrationPlugin",
                      "debug": false,
                      "version": 329986
                  }
                  
                  
                  "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qwindows.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qwindowsd.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qwindowsd.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3",
                      "MetaData": {
                          "Keys": [
                              "windows"
                          ]
                      },
                      "className": "QWindowsIntegrationPlugin",
                      "debug": true,
                      "version": 329986
                  }
                  
                  
                  Got keys from plugin meta data ("windows")
                  QFactoryLoader::QFactoryLoader() checking directory path "E:/VikingUretim/build-VikingUretim-Desktop_Qt_5_9_2_MSVC2015_32bit-Debug/debug/platforms" ...
                  loaded library "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platforms/qwindowsd.dll"
                  QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/platformthemes" ...
                  QFactoryLoader::QFactoryLoader() checking directory path "E:/VikingUretim/build-VikingUretim-Desktop_Qt_5_9_2_MSVC2015_32bit-Debug/debug/platformthemes" ...
                  QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/styles" ...
                  QFactoryLoader::QFactoryLoader() checking directory path "E:/VikingUretim/build-VikingUretim-Desktop_Qt_5_9_2_MSVC2015_32bit-Debug/debug/styles" ...
                  "E:/VikingUretim/build-VikingUretim-Desktop_Qt_5_9_2_MSVC2015_32bit-Debug/debug"
                  Application started successfully.
                  QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/iconengines" ...
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/iconengines/qsvgicon.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/iconengines/qsvgicon.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QIconEngineFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "svg",
                              "svgz",
                              "svg.gz"
                          ]
                      },
                      "className": "QSvgIconPlugin",
                      "debug": false,
                      "version": 329986
                  }
                  
                  
                  "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/iconengines/qsvgicon.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/iconengines/qsvgicond.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/iconengines/qsvgicond.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QIconEngineFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "svg",
                              "svgz",
                              "svg.gz"
                          ]
                      },
                      "className": "QSvgIconPlugin",
                      "debug": true,
                      "version": 329986
                  }
                  
                  
                  Got keys from plugin meta data ("svg", "svgz", "svg.gz")
                  QFactoryLoader::QFactoryLoader() checking directory path "E:/VikingUretim/build-VikingUretim-Desktop_Qt_5_9_2_MSVC2015_32bit-Debug/debug/iconengines" ...
                  QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats" ...
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qgif.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qgif.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "gif"
                          ],
                          "MimeTypes": [
                              "image/gif"
                          ]
                      },
                      "className": "QGifPlugin",
                      "debug": false,
                      "version": 329986
                  }
                  
                  
                  "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qgif.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qgifd.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qgifd.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "gif"
                          ],
                          "MimeTypes": [
                              "image/gif"
                          ]
                      },
                      "className": "QGifPlugin",
                      "debug": true,
                      "version": 329986
                  }
                  
                  
                  Got keys from plugin meta data ("gif")
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qicns.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qicns.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "icns"
                          ],
                          "MimeTypes": [
                              "image/x-icns"
                          ]
                      },
                      "className": "QICNSPlugin",
                      "debug": false,
                      "version": 329986
                  }
                  
                  
                  "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qicns.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qicnsd.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qicnsd.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "icns"
                          ],
                          "MimeTypes": [
                              "image/x-icns"
                          ]
                      },
                      "className": "QICNSPlugin",
                      "debug": true,
                      "version": 329986
                  }
                  
                  
                  Got keys from plugin meta data ("icns")
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qico.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qico.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "ico",
                              "cur"
                          ],
                          "MimeTypes": [
                              "image/vnd.microsoft.icon"
                          ]
                      },
                      "className": "QICOPlugin",
                      "debug": false,
                      "version": 329986
                  }
                  
                  
                  "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qico.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qicod.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qicod.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "ico",
                              "cur"
                          ],
                          "MimeTypes": [
                              "image/vnd.microsoft.icon"
                          ]
                      },
                      "className": "QICOPlugin",
                      "debug": true,
                      "version": 329986
                  }
                  
                  
                  Got keys from plugin meta data ("ico", "cur")
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qjpeg.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qjpeg.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "jpg",
                              "jpeg"
                          ],
                          "MimeTypes": [
                              "image/jpeg",
                              "image/jpeg"
                          ]
                      },
                      "className": "QJpegPlugin",
                      "debug": false,
                      "version": 329986
                  }
                  
                  
                  "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qjpeg.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qjpegd.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qjpegd.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "jpg",
                              "jpeg"
                          ],
                          "MimeTypes": [
                              "image/jpeg",
                              "image/jpeg"
                          ]
                      },
                      "className": "QJpegPlugin",
                      "debug": true,
                      "version": 329986
                  }
                  
                  
                  Got keys from plugin meta data ("jpg", "jpeg")
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qsvg.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qsvg.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "svg",
                              "svgz"
                          ],
                          "MimeTypes": [
                              "image/svg+xml",
                              "image/svg+xml-compressed"
                          ]
                      },
                      "className": "QSvgPlugin",
                      "debug": false,
                      "version": 329986
                  }
                  
                  
                  "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qsvg.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qsvgd.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qsvgd.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "svg",
                              "svgz"
                          ],
                          "MimeTypes": [
                              "image/svg+xml",
                              "image/svg+xml-compressed"
                          ]
                      },
                      "className": "QSvgPlugin",
                      "debug": true,
                      "version": 329986
                  }
                  
                  
                  Got keys from plugin meta data ("svg", "svgz")
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qtga.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qtga.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "tga"
                          ],
                          "MimeTypes": [
                              "image/x-tga"
                          ]
                      },
                      "className": "QTgaPlugin",
                      "debug": false,
                      "version": 329986
                  }
                  
                  
                  "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qtga.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qtgad.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qtgad.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "tga"
                          ],
                          "MimeTypes": [
                              "image/x-tga"
                          ]
                      },
                      "className": "QTgaPlugin",
                      "debug": true,
                      "version": 329986
                  }
                  
                  
                  Got keys from plugin meta data ("tga")
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qtiff.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qtiff.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "tiff",
                              "tif"
                          ],
                          "MimeTypes": [
                              "image/tiff",
                              "image/tiff"
                          ]
                      },
                      "className": "QTiffPlugin",
                      "debug": false,
                      "version": 329986
                  }
                  
                  
                  "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qtiff.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qtiffd.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qtiffd.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "tiff",
                              "tif"
                          ],
                          "MimeTypes": [
                              "image/tiff",
                              "image/tiff"
                          ]
                      },
                      "className": "QTiffPlugin",
                      "debug": true,
                      "version": 329986
                  }
                  
                  
                  Got keys from plugin meta data ("tiff", "tif")
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qwbmp.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qwbmp.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "wbmp"
                          ],
                          "MimeTypes": [
                              "image/vnd.wap.wbmp"
                          ]
                      },
                      "className": "QWbmpPlugin",
                      "debug": false,
                      "version": 329986
                  }
                  
                  
                  "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qwbmp.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qwbmpd.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qwbmpd.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "wbmp"
                          ],
                          "MimeTypes": [
                              "image/vnd.wap.wbmp"
                          ]
                      },
                      "className": "QWbmpPlugin",
                      "debug": true,
                      "version": 329986
                  }
                  
                  
                  Got keys from plugin meta data ("wbmp")
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qwebp.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qwebp.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "webp"
                          ],
                          "MimeTypes": [
                              "image/webp"
                          ]
                      },
                      "className": "QWebpPlugin",
                      "debug": false,
                      "version": 329986
                  }
                  
                  
                  "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qwebp.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qwebpd.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qwebpd.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QImageIOHandlerFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "webp"
                          ],
                          "MimeTypes": [
                              "image/webp"
                          ]
                      },
                      "className": "QWebpPlugin",
                      "debug": true,
                      "version": 329986
                  }
                  
                  
                  Got keys from plugin meta data ("webp")
                  QFactoryLoader::QFactoryLoader() checking directory path "E:/VikingUretim/build-VikingUretim-Desktop_Qt_5_9_2_MSVC2015_32bit-Debug/debug/imageformats" ...
                  loaded library "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qgifd.dll"
                  loaded library "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qicnsd.dll"
                  loaded library "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qicod.dll"
                  loaded library "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qjpegd.dll"
                  loaded library "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qsvgd.dll"
                  loaded library "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qtgad.dll"
                  loaded library "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qtiffd.dll"
                  loaded library "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qwbmpd.dll"
                  loaded library "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/imageformats/qwebpd.dll"
                  myDB.addDatabase(QPSQL);
                  QFactoryLoader::QFactoryLoader() checking directory path "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/sqldrivers" ...
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/sqldrivers/qsqlite.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/sqldrivers/qsqlite.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "QSQLITE"
                          ]
                      },
                      "className": "QSQLiteDriverPlugin",
                      "debug": false,
                      "version": 329986
                  }
                  
                  
                  "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/sqldrivers/qsqlite.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/sqldrivers/qsqlited.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/sqldrivers/qsqlited.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "QSQLITE"
                          ]
                      },
                      "className": "QSQLiteDriverPlugin",
                      "debug": true,
                      "version": 329986
                  }
                  
                  
                  Got keys from plugin meta data ("QSQLITE")
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/sqldrivers/qsqlmysql.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/sqldrivers/qsqlmysql.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "QMYSQL3",
                              "QMYSQL"
                          ]
                      },
                      "className": "QMYSQLDriverPlugin",
                      "debug": false,
                      "version": 329986
                  }
                  
                  
                  "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/sqldrivers/qsqlmysql.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/sqldrivers/qsqlmysqld.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/sqldrivers/qsqlmysqld.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "QMYSQL3",
                              "QMYSQL"
                          ]
                      },
                      "className": "QMYSQLDriverPlugin",
                      "debug": true,
                      "version": 329986
                  }
                  
                  
                  Got keys from plugin meta data ("QMYSQL3", "QMYSQL")
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/sqldrivers/qsqlodbc.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/sqldrivers/qsqlodbc.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "QODBC3",
                              "QODBC"
                          ]
                      },
                      "className": "QODBCDriverPlugin",
                      "debug": false,
                      "version": 329986
                  }
                  
                  
                  "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/sqldrivers/qsqlodbc.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/sqldrivers/qsqlodbcd.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/sqldrivers/qsqlodbcd.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "QODBC3",
                              "QODBC"
                          ]
                      },
                      "className": "QODBCDriverPlugin",
                      "debug": true,
                      "version": 329986
                  }
                  
                  
                  Got keys from plugin meta data ("QODBC3", "QODBC")
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/sqldrivers/qsqlpsql.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/sqldrivers/qsqlpsql.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "QPSQL7",
                              "QPSQL"
                          ]
                      },
                      "className": "QPSQLDriverPlugin",
                      "debug": false,
                      "version": 329986
                  }
                  
                  
                  "The plugin 'C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/sqldrivers/qsqlpsql.dll' uses incompatible Qt library. (Cannot mix debug and release libraries.)" 
                           not a plugin
                  QFactoryLoader::QFactoryLoader() looking at "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/sqldrivers/qsqlpsqld.dll"
                  Found metadata in lib C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/sqldrivers/qsqlpsqld.dll, metadata=
                  {
                      "IID": "org.qt-project.Qt.QSqlDriverFactoryInterface",
                      "MetaData": {
                          "Keys": [
                              "QPSQL7",
                              "QPSQL"
                          ]
                      },
                      "className": "QPSQLDriverPlugin",
                      "debug": true,
                      "version": 329986
                  }
                  
                  
                  Got keys from plugin meta data ("QPSQL7", "QPSQL")
                  QFactoryLoader::QFactoryLoader() checking directory path "E:/VikingUretim/build-VikingUretim-Desktop_Qt_5_9_2_MSVC2015_32bit-Debug/debug/sqldrivers" ...
                  loaded library "C:/Qt/Qt5.9.2/5.9.2/msvc2015/plugins/sqldrivers/qsqlpsqld.dll"
                  myDB.addDatabase(QPSQL); END
                  "Driver not loaded"
                  "Driver not loaded"
                  

                  Linux Mint 20.04 64 Bit QT6.0.1

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

                    Hi,

                    You wrote about both MSVC2013 and 2015 so are you trying to use a MSVC2013 build of PostgreSQL with a MSVC2015 build of Qt ? If so that won't work, Microsoft's compilers are not compatible one with the other when building C++ libraries. The current only exception is VS2017 which is backward compatible with VS2015. So beside architecture also check that part.

                    Note that it looks like you are trying to distribute a debug build which might not be what you want.

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

                    Z 1 Reply Last reply
                    1
                    • SGaistS SGaist

                      Hi,

                      You wrote about both MSVC2013 and 2015 so are you trying to use a MSVC2013 build of PostgreSQL with a MSVC2015 build of Qt ? If so that won't work, Microsoft's compilers are not compatible one with the other when building C++ libraries. The current only exception is VS2017 which is backward compatible with VS2015. So beside architecture also check that part.

                      Note that it looks like you are trying to distribute a debug build which might not be what you want.

                      Z Offline
                      Z Offline
                      zeroptr
                      wrote on last edited by
                      #23

                      Hello @SGaist

                      I'm not trying to distribute debug version.. I can only have that output at Debug mode.. After making lots of trial and new test projects..

                      I found that problem couse from a global QSqlDatabase variable.. That cost me a week...
                      It tries to create it self before QCoreApplication so no plugins can be loaded..

                      Thanks to Everyone...

                      Linux Mint 20.04 64 Bit QT6.0.1

                      mrjjM 1 Reply Last reply
                      1
                      • Z zeroptr

                        Hello @SGaist

                        I'm not trying to distribute debug version.. I can only have that output at Debug mode.. After making lots of trial and new test projects..

                        I found that problem couse from a global QSqlDatabase variable.. That cost me a week...
                        It tries to create it self before QCoreApplication so no plugins can be loaded..

                        Thanks to Everyone...

                        mrjjM Offline
                        mrjjM Offline
                        mrjj
                        Lifetime Qt Champion
                        wrote on last edited by mrjj
                        #24

                        Oh
                        That was a nasty one.
                        There were no errors/warnings in Creator console?

                        Z 1 Reply Last reply
                        0
                        • mrjjM mrjj

                          Oh
                          That was a nasty one.
                          There were no errors/warnings in Creator console?

                          Z Offline
                          Z Offline
                          zeroptr
                          wrote on last edited by
                          #25

                          @mrjj unfortunately it took a week to figure out the problem...

                          Linux Mint 20.04 64 Bit QT6.0.1

                          mrjjM 1 Reply Last reply
                          0
                          • Z zeroptr

                            @mrjj unfortunately it took a week to figure out the problem...

                            mrjjM Offline
                            mrjjM Offline
                            mrjj
                            Lifetime Qt Champion
                            wrote on last edited by mrjj
                            #26

                            @zeroptr
                            Yep there is a many very good reasons most of us avoid globals at all costs.
                            But normally there is a warning that object initialized before application running
                            sort of msg.
                            Update:
                            Nope, did not say a thing.

                            Normally u get
                            alt text

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

                              There's absolutely no need for a class member nor a global QSqlDatabase variable. It's already a sort of singleton that has all the interface needed to retrieve database information any time needed.

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

                              Z 1 Reply Last reply
                              1
                              • mrjjM mrjj

                                @zeroptr
                                Yep there is a many very good reasons most of us avoid globals at all costs.
                                But normally there is a warning that object initialized before application running
                                sort of msg.
                                Update:
                                Nope, did not say a thing.

                                Normally u get
                                alt text

                                Z Offline
                                Z Offline
                                zeroptr
                                wrote on last edited by
                                #28

                                @mrjj unfortunately if I get this message before I can repair this in a day or two.. but mingw or MSVC doesn't produce any message like this..

                                Linux Mint 20.04 64 Bit QT6.0.1

                                mrjjM 1 Reply Last reply
                                0
                                • SGaistS SGaist

                                  There's absolutely no need for a class member nor a global QSqlDatabase variable. It's already a sort of singleton that has all the interface needed to retrieve database information any time needed.

                                  Z Offline
                                  Z Offline
                                  zeroptr
                                  wrote on last edited by
                                  #29

                                  @SGaist yes I unfortunately learned that on long way..

                                  Linux Mint 20.04 64 Bit QT6.0.1

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

                                    To be fair, there's a warning in the detailed documentation of QSqlDatabase about not keeping QSqlDatabase variables around.

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

                                    mrjjM 1 Reply Last reply
                                    1
                                    • Z zeroptr

                                      @mrjj unfortunately if I get this message before I can repair this in a day or two.. but mingw or MSVC doesn't produce any message like this..

                                      mrjjM Offline
                                      mrjjM Offline
                                      mrjj
                                      Lifetime Qt Champion
                                      wrote on last edited by
                                      #31

                                      @zeroptr
                                      Well it didn't say that for the QSqlDatabase .
                                      Only the QWidget gave spank at once.
                                      I guess its not illegal to have an instance of QSqlDatabase
                                      before main but as you found out it can that try to use stuff
                                      before its up and running.

                                      But the good part is that we learned something. I didn't guess at such thing but next time i will ask.

                                      1 Reply Last reply
                                      0
                                      • SGaistS SGaist

                                        To be fair, there's a warning in the detailed documentation of QSqlDatabase about not keeping QSqlDatabase variables around.

                                        mrjjM Offline
                                        mrjjM Offline
                                        mrjj
                                        Lifetime Qt Champion
                                        wrote on last edited by
                                        #32

                                        @SGaist
                                        Oh not as even as class member.

                                        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