Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How to disable "Implicitly defined onFoo properties in Connections are deprecated." warning?
Forum Updated to NodeBB v4.3 + New Features

How to disable "Implicitly defined onFoo properties in Connections are deprecated." warning?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 1.5k Views 1 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.
  • rreignierR Offline
    rreignierR Offline
    rreignier
    wrote on last edited by
    #1

    Qt 5.14 introduced a new format for the Connections callback using Javascript callbacks.
    This generates a warning since Qt 5.15 but this warning could be disabled thanks to this check:

    if (lcQmlConnections().isWarningEnabled())
    

    To still use the same code on Qt 5.12 and Qt 5.15, I would like to disable this warning for now.
    I have tried with the QT_LOGGING_RULES env variable and QLoggingCategory::setFilterRules like this in my main:

    QLoggingCategory::setFilterRules("qt.qml.connections.warning=false");
    

    But the warnings are still here.

    Even when checking with:

    Q_LOGGING_CATEGORY(lcQmlConnections, "qt.qml.connections")
    
    int main(int argc, char*** argv)
    {
        QLoggingCategory::setFilterRules("qt.qml.connections.warning=false");
        qDebug() << "qml.connections warning enabled?"
                     << lcQmlConnections().isWarningEnabled();
        [...]
    }
    

    The result is false but the warnings are there.

    Do you have any idea?

    Thank you

    1 Reply Last reply
    1
    • M Offline
      M Offline
      Markus43
      wrote on last edited by
      #2

      There was a comment in the release blog about this: The logging categories will be available with 5.15.1 because the related change did not make it into Qt 5.15.0.

      By the way, to find this out: See the git history of the related file, and find the change that introduced this line of code on gerrit.
      https://codereview.qt-project.org/c/qt/qtdeclarative/+/293011
      -> Click on "included in" button in gerrit to see if a release is listed there.

      rreignierR 1 Reply Last reply
      1
      • M Markus43

        There was a comment in the release blog about this: The logging categories will be available with 5.15.1 because the related change did not make it into Qt 5.15.0.

        By the way, to find this out: See the git history of the related file, and find the change that introduced this line of code on gerrit.
        https://codereview.qt-project.org/c/qt/qtdeclarative/+/293011
        -> Click on "included in" button in gerrit to see if a release is listed there.

        rreignierR Offline
        rreignierR Offline
        rreignier
        wrote on last edited by
        #3

        Thank you @Markus43
        I haved missed this info.

        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