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

grabGesture doesn't work when a QScrollArea is inside a QDialog and the dialog is opened by calling exec()

    XMLWordPrintable

Details

    Description

      grabGesture doesn't work when a QScrollArea is inside a QDialog and the dialog is opened by calling exec(). The problem doesn't occur if the dialog is opened by calling show().

      Steps to reproduce:
      -------------------

      • run the sample attached

      Phase 1:

      • use the mouse left button to grab the widget inside the scroll area
      • move/throw the widget around
      • press the button "Open a new dialog" -> Dialog with an identical scroll widget opens

      Phase 2:

      • use the mouse to move the widget inside the newly opened dialog
      • observe the behavior and compare it to 'Phase 1'
        EXPECTED: the widget behaves the same way
        ACTUAL: the widget cannot be moved by grabbing

      Attachments

        1. qtbug67210.zip
          1 kB
        2. qtbug67210.zip
          2 kB
        3. qtbug67210_diag.diff
          5 kB
        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
            risto.sipola Risto Sipola
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes