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

QtQml import has to come after QtQuick in order to avoid Binding's restoreMode warning

XMLWordPrintable

    • 4e15f2135cdbefd9999a17d4e4fff5ea93679fac (qt/qtdeclarative/5.14)

      I'm trying to fix the Binding restoreMode warning introduced in 5.14. I added

      QtQml 2.14
      

      to the top of my imports, but I still get an error:

      05:51:691 QQmlApplicationEngine failed to load component
      05:51:691 qrc:/qml/main.qml:264:13: Type Ui.SwatchPanel unavailable
      05:51:691 qrc:/qml/ui/SwatchPanel.qml:100:25: "Binding.restoreMode" is not available in QtQuick 2.14.
      

      Moving the QtQml import below the QtQuick one fixes it, but shouldn't be necessary.

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

            ulherman Ulf Hermann
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes