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

Window item lacks "focus" property and Keys attached property

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes