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

RoundButton does not receive propagatedComposedEvent clicks

XMLWordPrintable

    • All

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

        1. main-1.qml
          2 kB
        2. Button2-1.qml
          0.2 kB
        3. Button1-1.qml
          0.1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            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

              Created:
              Updated:

                There are no open Gerrit changes