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

QML MouseArea event propagation get wrong signal on visible change

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P3: Somewhat important
    • None
    • 4.8.4
    • None
    • Win7 + Qt4.8.4

    Description

      Set one item to visible by double click on panel's mousearea. This item covers whole panel with mousearea itself.

      Try a few time, when the top item is visible, it will receive panel's click event on the first click.

      Output message by sample:

      btm Press
      btm Release
      btm Press
      btm Release
      btm Double click
      btm Release
      top Press
      top Release
      top Press
      top Release
      top Press
      top Release
      top Double click
      btm Press
      btm Release
      btm Press
      btm Release
      btm Press
      btm Release
      btm Double click --> visible top Item
      btm Release
      "btm Press" --> first click will receive panel's click event
      "btm Release"
      top Release
      top Press
      top Release
      top Press
      top Release

      If I implement mouse event by c++ extension, and signal mouse event to QML. The output message will correct!!!

      Attachments

        1. main.cpp
          0.4 kB
        2. mouseregion.cpp
          0.8 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kahautam Kari Hautamäki
            jackyang jack yang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes