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

Window item lacks "focus" property and Keys attached property

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4: Low P4: Low
    • None
    • 5.0.0
    • None

      The QtQuick.Window item doesn't seem to get keyboard focus.

      Code like the following:

      import QtQuick.Window 2.0
      
      Window {
          Keys.onReturnPressed: console.log("Return was pressed")
      }
      

      will not emit warnings when run, yet does nothing when the Return key is pressed. Also, it's not possible to specify "focus: true", because that causes a parser error.

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

            srutledg Shawn Rutledge
            mardy Alberto Mardegan
            Votes:
            3 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes