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

Missing QML error in singletons

    XMLWordPrintable

Details

    • All

    Description

      The attached example can be started without any problems but it should not.
      In MySingleton.qml line 7 is a missing required property that should lead to an error.

      When I use the same code in Main.qml (uncomment lines 4-9) I can see the right behavior:

      QQmlApplicationEngine failed to create component
      qrc:/qt/qml/ExampleSingleton/MyData.qml:5:2: Required property myData2 was not initialized
      

      Attachments

        Issue Links

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

          Activity

            People

              semih.yavuz Semih Yavuz
              larss Lars Schmertmann
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes