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

RoundButton does not receive propagatedComposedEvent clicks

    XMLWordPrintable

Details

    • All

    Description

      This is a documented bug. But I think it's so severe that it should still be considered a bug. It falls into the category "Qt doesn't support Qt".

      Place main.qml, Button1.qml and Button2.qml in the same folder, run qmlscene.

      You see a gray window, blue rectangle and while/yellow circle button. Press the button. Observe the log output.

      Now close qmlscene, edit main.qml, and flip the `bug: ` boolean property.

      Rerun the example. click the button. Look at console output. The example shows that buttons not directly using MouseArea don't work with composed event propagation.

      The drag feature of MouseArea only works for MouseArea. You can't have a RoundButton under it.

      I hope I'm wrong. But this cast seems to be quite central:

         QQuickMouseArea* ma = qobject_cast<QQuickMouseArea*>(item); 
          if (ma && ma != q && ma->isEnabled() && itemPrivate->acceptedMouseButtons() & ev->button()) { 
              switch (sig) {

      Attachments

        1. Button1-1.qml
          0.1 kB
        2. Button2-1.qml
          0.2 kB
        3. main-1.qml
          2 kB

        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
              andrhans Andreas Aardal Hanssen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes