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

QTextEdit::setTabChangesFocus has no effect

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.4.3, 6.5.0, 6.6.0
    • 6.4.1, 6.5.0
    • None
    • macOS 12.4 M1 (arm64), Qt 6.4.1 (reproduces) / Qt 6.4.0 (does not reproduce)
    • macOS
    • 7e7bae35f (dev), 65b93df96 (6.4), ee1e0d256 (6.5)

    Description

      As of Qt 6.4.1, and only on macOS, when a QTextEdit is set to allow typing tab characters using QTextEdit::setTabChangesFocus, trying to type tab will instead change the focus and not type anything. This behavior has only been seen with these conditions. Other platforms, and Qt <= 6.4.0 do not do this.

      Repro steps:

      1. Build attached code sample
      2. Run built product
      3. Type some text in textbox, observe text is typed
      4. Press tab
        1. Observe focus is moved to button, and no tab is typed (6.4.1 macOS)
        2. Observe focus remains in text edit, and tab is typed (other platforms)

      Attachments

        1. 640.png
          640.png
          192 kB
        2. 641.png
          641.png
          193 kB
        3. qtbug109754.zip
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vestbo Tor Arne Vestbø
            glenns Glenn Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes