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

Focus not visualised on startup

    XMLWordPrintable

Details

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

    Description

      The button with focus below doesn't have its focus visualised on startup. It's only after tabbing away and back to it that it visualises its focus.

      import QtQuick
      import QtQuick.Controls
      
      ApplicationWindow {
          width: 800
          height: 700
          title: "activeFocusItem: " + activeFocusItem
          visible: true
      
          Row {
              Button {
                  objectName: "testButton1"
                  focus: true
                  text: "Button 1"
              }
              Button {
                  objectName: "testButton2"
                  text: "Button 2"
              }
          }
      }
      

      Attachments

        Issue Links

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: