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

QML KeyNavigation crashes program

    XMLWordPrintable

Details

    • Linux/Other display system, Windows
    • 29c61f83c98c269c1c862a668c0a91a1027ee2d2 (qt/qtdeclarative/5.12)

    Description

      How to reproduce

      I attached a minimal example to demonstrate the bug:

      1. Start the main.qml in an empty QtCreator QML project. (qmlscene does not reproduce the bug!).
      2. Then click the checkbox and press arrow key down -> program crashes with read access violation.

      Possible explanation

      The Button has "KeyNavigation.up" pointing to the CheckBox. This will implicitly set the

      KeyNavigation.down of the CheckBox pointing back to the Button.

      Pressing the CheckBox will focus the checkbox and remove the Button from the UI.

      Pressing arrow key down will now try to focus the already garbage collected Button.

      -> crash

       

      Attachments

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

        Activity

          People

            srutledg Shawn Rutledge
            toms toms
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes