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

Broken ActiveX JavaScript scripting

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 4.8.x, 5.6.0 Alpha
    • ActiveX Support
    • None
    • Windows 7 (x64).
      Visual Studio 2012 (32bit)

    Description

      JScript-based (https://en.wikipedia.org/wiki/JScript) javascript scripting of ActiveX controls seem to be partly broken in Qt. VBScript-based scripting, however, seem to work fine based on the "testcon" sample scripts.

      STEPS TO REPRODUCE:

      • Build the src\activeqt\container, examples\activeqt\multiple & tools\testcon projects in the QtActiveQt repo.
      • Start "testcon", then insert the QAxWidget2 control (part of the "multiple" project).
      • Load "tools\testcon\scripts\vbscript.vbs", select run macro and verify that both the "fatLines()" and "setLineWidth(QVariant)" functions modify line width in QAxWidget2 when called.
      • Restart "testcon", then insert the QAxWidget2 control again.
      • Load "scripts\vbscript.js", select run macro and verify that "setLineWidth(QVariant)" does work, whereas "fatLines()" fails silently.

      Both the JScript and VBscript scripting engines report to support introspection by QAxScriptEngine::hasIntrospection, so lack of introspection support is not the direct reason.

      Qt 4: JavaScript causes an assert crash.

      Attachments

        1. qtbug49355_diag.diff
          17 kB
          Friedemann Kleint
        2. qtbug49355_js_log.txt
          2 kB
          Friedemann Kleint
        3. qtbug49355_vb_log.txt
          2 kB
          Friedemann Kleint
        4. rb.bat
          0.2 kB
          Friedemann Kleint
        5. qtbug49355_qt4_crashtrace.txt
          22 kB
          Friedemann Kleint

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              forderud Fredrik Orderud
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes