Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-117621

Reg->6.7: QSqlDatabase::drivers() requires a QCoreApplication to work

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.7.0 FF
    • 6.7
    • SQL Support
    • None
    • All
    • 08d36a04f (dev), 993ebc0ab (6.6), 2fcfe3027 (6.5), d70b873c3 (dev)

    Description

      Calling QSqlDatabase::drivers() without qApp produces

      6.7.0
      ASSERT failure in QtGlobalStatic::ApplicationHolder<QAS>::PlainType* QtGlobalStatic::ApplicationHolder<QAS>::pointer() 
         [with QAS = {anonymous}::Q_QAS_s_sqlGlobals; QtGlobalStatic::ApplicationHolder<QAS>::PlainType = {anonymous}::QtSqlGlobals]: 
         "The application static was used without a QCoreApplication instance", file  qt-dev/qt-dev/qtbase/src/corelib/kernel/qapplicationstatic.h, line 54
      

      whereas

      6.6.1
      qt.core.qobject.connect: QObject::connect(QObject, Unknown): invalid nullptr parameter
      "QMARIADB"
      "QMYSQL"
      "QSQLITE"
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              chehrlic Christian Ehrlicher
              kleint Friedemann Kleint
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes