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

Minor source compatibility break in QLoggingCategory

    XMLWordPrintable

Details

    • All
    • ef9fe7a99 (dev), 2e70ca484 (6.6), 757f64bd1 (6.5)

    Description

      A change made to QLoggingCategory between Qt 6.2.3 and Qt 6.5.1 caused code that used the API as seen below, to no longer compile.

      QLoggingCategory logging functions, like qCDebug, qCInfo, qCWarning, allowed passing a function returning a reference to a declared category as argument:

      Q_LOGGING_CATEGORY(category, "mycat", QtInfoMsg)
      ...
      QLoggingCategory &cat() { return category; }
      ...
      qCInfo(cat) << "Info";
      

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            andrhans Andreas Aardal Hanssen
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes