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

QT.include (include javascript file in javascript file) does no longer work in QT 5.2

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • 5.2.0
    • None
    • Ubuntu 12.04 32bit

    Description

      In my qml project I use a.js and z.js. a.js uses functions of z.js. So I included z.js with the following code in a.js:

      Qt.include("z.js")

      This worked perfectly with QT 5.1, but since I switched to 5.2 it doesnt work anymore. I get the following error:

      a.js: TypeError: Property 'myExternalFunction' of object [object Object] is not a function

      I attached an example which works with QT 5.1, but not with QT 5.2.

      Attachments

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

        Activity

          People

            shausman Simon Hausmann
            dermas Der Mas
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes