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

Change in behavior of starting focus on QDialog.

XMLWordPrintable

    • All

      In Qt 6.5.3 and earlier versions, dialogs containing a QLineEdit and QDialogButtonBox would initially focus on the line edit field.

      This behavior has changed in subsequent versions, with the initial focus no longer being set to the line edit field.

      To reproduce the issue, run the attached example project.

      As a workaround,  call setFocus() on the QLineEdit object. 

        1. FocusIssue.zip
          1 kB
          Mehdi Belila
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            axelspoerl Axel Spoerl
            mahdi.belila Mehdi Belila
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes