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

OS X: TextField with activeFocusOnTab inside FocusScope: TAB does not work

    XMLWordPrintable

Details

    • macOS

    Description

      This code works fine on Linux, but not on OS X:

      import QtQuick 2.2
      import QtQuick.Controls 1.1
      
      ApplicationWindow {
      	visible: true
      	width: 640
      	height: 480
      
      	// Should jump between the two edit fields on TAB
      
      	FocusScope {
      		activeFocusOnTab: true
      		anchors.top: parent.top
      		width: parent.width
      		height: 100
      		TextField {
      			activeFocusOnTab:  false
      			anchors.centerIn: parent
      			text: qsTr("Press")
      			focus: true
      		}
      	}
      
      	FocusScope {
      		activeFocusOnTab: true
      		anchors.bottom: parent.bottom
      		width: parent.width
      		height: 100
      		TextField {
      			activeFocusOnTab:  false
      			anchors.centerIn: parent
      			text: qsTr("Tab")
      			focus: true
      		}
      	}
      }
      
      // http://woboq.com/
      

      On OS X nothing happens, the focus does NOT swap between the two fields

      Attachments

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

        Activity

          People

            dedietri Gabriel de Dietrich (drgvond)
            mgoetz2 Markus Goetz (Woboq GmbH)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes