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

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

    XMLWordPrintable

Details

    • 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

        For Gerrit Dashboard: QTBUG-103926
        # Subject Branch Project Status CR V

        Activity

          People

            ulherman Ulf Hermann
            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