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

QT 6 qmlengine->evaluate('Qt.WindowModal') returns undefined

    XMLWordPrintable

    Details

    • Platform/s:
      All

      Description

      I am author of Nelson with QML engine available from an numerical interpreter and I try to port it to Qt6.)
      https://wiki.qt.io/Language_Bindings (QML bindings for Nelson language)

      In Qt5, to convert type "easily", I use:
      QJSValue evaluationResult = qmlengine->evaluate('Qt.WindowModal');
      and evaluationResult is valid and have as content Qt.WindowModal value.

      In Qt6, it returns undefined.
      Help would be appreciated.

      How convert "generic" string to value
      example in nelson language:
      ```
      h.modality = qml_evaluatestring('Qt.WindowModal');
      ```

        Attachments

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

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            nelson.numerical Allan CORNET
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes