Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-13347

Qt Creator does not recognize slot Window.onClosing (M16)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 4.13.0-rc1
    • Qt Creator 3.2.0, Qt Creator 3.2.2, Qt Creator 3.4.0, Qt Creator 4.8.0
    • Quick / QML Support
    • None
    • Ubuntu 14.04 + Qt 5.3.1 / Qt 5.3.2 + Qt Creator 3.2.0 / Qt Creator 3.2.2
      Fedora 20 + Qt 5.4.0 + Qt Creator 3.3.0
      Ubuntu 15.04 + Qt 5.4.1 + Qt Creator 3.4.0

    Description

      When I imlement the Slot onClosing in a Window, Qt Creator says

      Error: Invalid property name "onClosing". (M16)

      Minimal Example:

      import QtQuick 2.2
      import QtQuick.Window 2.1
      
      Window {
          title: qsTr("Hello World")
          width: 300
          height: 200
      
          onClosing: {
              console.log("Cya ...")
          }
      }
      

      Attachments

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

        Activity

          People

            fawzi Fawzi Mohamed
            webmaster128 Simon Warta
            Votes:
            5 Vote for this issue
            Watchers:
            14 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes