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

ShiftModifier is ignored when simulating mouse clicks

XMLWordPrintable

      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.

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

            tvete Paul Olav Tvete
            jakub.zurkowski Jakub Zurkowski
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes