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

Shortcut stops triggering Action when the Action is assigned to a Button in a Repeater

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.10.0
    • Fix Version/s: 5.10.1
    • Labels:
      None
    • Environment:
      * Qt Quick 2.9 application on Qt 5.10 (installed from binaries)
       * Fedora 26
    • Commits:
      0dbbfc2f2824aa3891fde0b219fb4951e94a64c9

      Description

      Shortcut stops triggering Action when the Action is assigned to a Button in a Repeater.

      This affects QtQuick applications using Controls2.

       

      How to reproduce:

      1) Create an Action and assign a shortcut to it, do some action on the trigger

      2) Create a Repeater (with only one repetition) with a Button delegate

      3) Assign the Action to the Button delegate

      4) Start application, hit the shortcut -> BUG -> nothing happens

      5) Observation - if the shortcut is reassigned to the Action it starts working again

       

      Desired behavior of course is that the Action triggers. When removing the Repeater the Action triggers. When including it in a simple Button (outside of a Repeater) the Action triggers.

       

      Real use cases include creating multiple buttons in a Repeater and assigning them Actions from an ActionGroup based on their index.

       

      I'm including a minimal example as an attachment.

       

        Attachments

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

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vojtechfrnoch Vojtěch Frnoch
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes