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

Misleading description about MouseArea::clicked propagation

XMLWordPrintable

      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).

        1. main.cpp
          0.2 kB
          Pavel Mendl
        2. main.qml
          1 kB
          Pavel Mendl
        3. qml.qrc
          0.1 kB
          Pavel Mendl
        4. Test.pro
          0.2 kB
          Pavel Mendl
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

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

                  There are no open Gerrit changes