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

Bug when loading a qml module via a URL, with singletons and inheritance

    XMLWordPrintable

Details

    • Linux/X11, Windows
    • 5ca1d2e0b2912e578a32c5e11b4fd1d7a0ef28f3 (qt/qtdeclarative/5.14)

    Description

      I'm aware of bug QTBUG-30467 wich affects the use of modules over a network connection. This bug might be related but I'm not sure how.

       

      When loading an QML-Type over network this type might import a different namespace and in that namespace declares a singleton. So far everything works as expected. But this singleton might inherit a user defined type. This leads to an empty qml view. No error is displayed though.

      See the attached zip file with a working reproducer. You need to serve the folder via http for example by using the command python3 -m http.server.

      Attachments

        1. Bildschirmfoto von 2019-09-09 19-42-43.png
          2 kB
          David Feurle
        2. test_windows.png
          1 kB
          David Feurle
        3. test.zip
          3 kB
          David Feurle

        Issue Links

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

          Activity

            People

              fabiankosmale Fabian Kosmale
              david_feurle David Feurle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes