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

Misleading description about MouseArea::clicked propagation

    XMLWordPrintable

Details

    Description

      The documentation of the clicked(MouseEvent mouse) states:

      When handling this signal, changing the accepted property of the mouse parameter has no effect.

      This is not correct, as when propagateComposedEvents attribute is set to true, changing the accepted property of the mouse parameter inside onClick: block indeed controls whether the actual event will be propagated to underlaying MouseArea or not.

      The current texting is misleading in that it sugests, that you can not make event propagated once you started to handle it (enter onClick: block), what is not true (experimentally verified - see the demo project attached).

      Attachments

        1. Test.pro
          0.2 kB
        2. qml.qrc
          0.1 kB
        3. main.qml
          1 kB
        4. main.cpp
          0.2 kB
        For Gerrit Dashboard: QTBUG-46912
        # Subject Branch Project Status CR V

        Activity

          People

            kdpalara Kavindra Palaraja
            pmendl Pavel Mendl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 15 minutes
                15m
                Remaining:
                Remaining Estimate - 15 minutes
                15m
                Logged:
                Time Spent - Not Specified
                Not Specified

                Gerrit Reviews

                  There are no open Gerrit changes