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

Undefined Qt.Key_* in javascript files if import or pragma

    XMLWordPrintable

    Details

    • Commits:
      31b53f50674ace214c8cd93bd6470ac82b96d945

      Description

      In Qt5, it was possible to use Qt.Key_Up in a .js file directly.

      In Qt6.3 (maybe before), the behaviour has changed. If there is either a ".pragma library" or an ".import ", Qt.Key_Up will return undefined.

      It can be workarounded by importing QtQuick or QtQml and using QtQuick.Qt.Key_Up.

        Attachments

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

          Activity

            People

            Assignee:
            ulherman Ulf Hermann
            Reporter:
            petitlapin Johnny Jazeix
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes