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. Information from QT_DEBUG_PLUGINS
Forum Updated to NodeBB v4.3 + New Features

Information from QT_DEBUG_PLUGINS

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 3 Posters 3.4k Views 3 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.
  • JonBJ Offline
    JonBJ Offline
    JonB
    wrote on last edited by JonB
    #1

    In https://forum.qt.io/topic/90675/cannot-connect-to-databases-driver-not-loaded-error/5 @SGaist wrote:

    Then start your application with the QT_DEBUG_PLUGINS environment variable set to 1. That will give you some more information about what is happening.

    I did not know about this. It is useful to me, to understand what is going on. Two very quick questions, if I may (I use PyQt5, not C++):

    1. There are a lot more plugins being loaded that I had imagined! I shan't ask about each of them, as I'm sure there are good reasons. However, i would like to check: it loads QMYSQLDriverPlugin, which is fair enough as I use MySQL, but it also loads QSQLiteDriverPlugin, but I don't use SQLite. Is it that the MySQL plugin/driver requires the SQLite one too?

    2. My program defines a global qtMessageHandler, so I see all internal Qt messages. I notice that several (but not all) of the messages are:

    WARNING qtLogger [errfunctions.py, 60, qtMessageHandler()]: Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/sqldrivers/libqsqlmysql.so, metadata=
    ...

    The WARNING means they are QtCore.QtWarningMsg. This seems strange, as they are all warning that metadata has been found, not is missing! Is this relevant, or should I just regard it as a QtCore.QtInfoMsg?

    kshegunovK 1 Reply Last reply
    0
    • JonBJ JonB

      In https://forum.qt.io/topic/90675/cannot-connect-to-databases-driver-not-loaded-error/5 @SGaist wrote:

      Then start your application with the QT_DEBUG_PLUGINS environment variable set to 1. That will give you some more information about what is happening.

      I did not know about this. It is useful to me, to understand what is going on. Two very quick questions, if I may (I use PyQt5, not C++):

      1. There are a lot more plugins being loaded that I had imagined! I shan't ask about each of them, as I'm sure there are good reasons. However, i would like to check: it loads QMYSQLDriverPlugin, which is fair enough as I use MySQL, but it also loads QSQLiteDriverPlugin, but I don't use SQLite. Is it that the MySQL plugin/driver requires the SQLite one too?

      2. My program defines a global qtMessageHandler, so I see all internal Qt messages. I notice that several (but not all) of the messages are:

      WARNING qtLogger [errfunctions.py, 60, qtMessageHandler()]: Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/sqldrivers/libqsqlmysql.so, metadata=
      ...

      The WARNING means they are QtCore.QtWarningMsg. This seems strange, as they are all warning that metadata has been found, not is missing! Is this relevant, or should I just regard it as a QtCore.QtInfoMsg?

      kshegunovK Offline
      kshegunovK Offline
      kshegunov
      Moderators
      wrote on last edited by
      #2

      @JonB said in Information from QT_DEBUG_PLUGINS:

      There are a lot more plugins being loaded that I had imagined!

      The whole platform integration layers is in plugins nowadays, so brace yourself. :)

      but it also loads QSQLiteDriverPlugin, but I don't use SQLite. Is it that the MySQL plugin/driver requires the SQLite one too?

      Nope, it loads everything it can find. If it can't find it then it won't load it.

      Is this relevant, or should I just regard it as a QtCore.QtInfoMsg?

      I don't think you should be worried about it.

      Read and abide by the Qt Code of Conduct

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

        Hi,

        1. The system goes through all of the plugins available until it finds the one it's interested in. The metadata are what is used to select the correct plugin..

        2. You can indeed treat that specific warning as information.

        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

        • Login

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