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

MouseRegion's id shadows 'mouse' parameter

    XMLWordPrintable

Details

    • 83cbbd6c4c9ff2f00651c31af0d52845b2e98390

    Description

      The following code should work even if the name of the MouseRegion is 'mouse':

      MouseRegion {
          id: mouse
          onClicked: print(mouse.button)
      }
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            aakenned Aaron Kennedy
            bodson Yann Bodson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes