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

Broken ActiveX JavaScript scripting

XMLWordPrintable

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

      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.

        1. qtbug49355_diag.diff
          17 kB
          Friedemann Kleint
        2. qtbug49355_js_log.txt
          2 kB
          Friedemann Kleint
        3. qtbug49355_qt4_crashtrace.txt
          22 kB
          Friedemann Kleint
        4. qtbug49355_vb_log.txt
          2 kB
          Friedemann Kleint
        5. rb.bat
          0.2 kB
          Friedemann Kleint
        For Gerrit Dashboard: QTBUG-49355
        # Subject Branch Project Status CR V

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

              Created:
              Updated:

                There are no open Gerrit changes