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

ShiftModifier is ignored when simulating mouse clicks

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.8.0
    • Widgets: Itemviews
    • None
    • Ubuntu Linux 22.04, Qt 6.5.8 and 6.8.0

    Description

      Qt::ShiftModifier is ignored when using sendEvent() or postEvent() to simulate mouse clicks on item views - an extended selection is expected but only the last-clicked element is selected (probably because current selection start index gets overwritten).The example app TestApp_selectMultipleRows.zip shows the regression: it works as expected with Qt 6.5.0 but fails with Qt 6.5.8 and 6.8.0.

      The issue doesn't occur when:

      • clicking on items by hand
      • using QPA
      • using Qt::ControlModifier

      Initial analysis

      This regression affects replaying recorded interactions in Squish: SQUISH-18502 - see analysis details in comment section.
      Our investigation suggests that the issue started after the following fix: QTBUG-127381.

      Attachments

        Issue Links

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

          Activity

            People

              qt.team.quick.subscriptions Qt Quick and Widgets Team
              jakub.zurkowski Jakub Zurkowski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes