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

DialogButtonBox's focus navigation order is wrong

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.2
    • Quick: Controls 2
    • None

    Description

      Running the code below, I would expect the focus order when tabbing to be:

      Test > Cancel > Ok

      This matches the left-to-right, top-to-bottom focus navigation seen on e.g. Ubuntu and Windows.

      Instead, the order is:

      Test > Ok > Cancel

      import QtQuick
      import QtQuick.Controls
      
      ApplicationWindow {
          width: 800
          height: 700
          title: "activeFocusItem: " + activeFocusItem
          visible: true
      
          Dialog {
              standardButtons: Dialog.Ok | Dialog.Cancel
              focus: true
              visible: true
      
              Button {
                  text: "Test"
                  focus: true
              }
          }
      }
      

      When this is fixed, the BLACKLIST in the qquickfiledialogimpl auto test should be removed.

      Attachments

        Issue Links

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

          Activity

            People

              mitch_curtis Mitch Curtis
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes