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

MouseEvent cannot be resolved

    XMLWordPrintable

Details

    Description

      Having something like

      import QtQuick
      import QtQuick.Window
      
      Window {
          width: 640
          height: 480
          visible: true
          title: 'sandbox'
      
          function foo(event : MouseEvent) {}
      }
      

      runs into

      Warning: Main.qml:10:5: Could not compile function foo: Cannot resolve the argument type MouseEvent. [compiler]
          function foo(event : MouseEvent) {}
          ^^^^^^^^^
      

      Attachments

        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
            cajus Cajus Pollmeier
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes