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

When declaring a function inside a Connections then Qt Creator will say that declaring a function in a Qt Quick UI is not allowed

    XMLWordPrintable

Details

    • 0e696e19fe42043720031f2421c15d76da192e19

    Description

      When declaring a function inside a Connections then Qt Creator will say that declaring a function in a Qt Quick UI is not allowed. However from Qt 5.15, doing it the old style way is deprecated so doing:

      Connections {
      ...
      function onClicked() { .... }
      }
      

      should be accepted.

      Attachments

        1. image-2021-06-29-14-41-38-562.png
          119 kB
          Tim Jenssen
        2. qtcreatorbug24426.tar.gz
          145 kB
          Andy Shaw
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            madwinter Marcus Tillmanns
            andysh Andy Shaw
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes