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

[REG 5.11->5.12.0]: Using Qt.include() does not work correctly as it will give a reference error when trying to access a variable defined in it

    XMLWordPrintable

Details

    Description

      Using Qt.include() does not work correctly as it will give a reference error when trying to access a variable defined in it. In the attached example, when clicking on the rectangle it will give:

      qrc:/bar.js:4: ReferenceError: testInteger is not defined
      

      Instead of "42".

      Attachments

        Issue Links

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

          Activity

            People

              ulherman Ulf Hermann
              andysh Andy Shaw
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes