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

C++ signal > QML slot = ReferenceError (Qt5.12.3)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Duplicate
    • Affects Version/s: 5.12.3
    • Fix Version/s: 5.12.4
    • Component/s: Quick: Controls 2
    • Labels:
      None
    • Environment:
      Developing on Ubuntu and crosscompiling for Raspberry Pi 3.

      Description

      Hi all,

      I am sending signals from C++ and receive them in slots in QML. I am sending to parameters with these signals. Now I get a reference error, that is telling me that this variable (parameter of my signal) is not defined.
       

      Here is a minimal example to demonstrate the problem:

      link to example

      When I start the application out of Qt Creator via "Start debugging" the rectangle keeps blue and I get the error "ReferenceError: name is not defined".
      If I start the application via "Run" the rectangle gets red and I get no errors.

      I am using Qt5.12.3. (Before I used Qt5.9.)
      I am developing on Ubuntu and crosscompiling for Raspberry Pi 3.

      I was confirmed that this problem also exists with other platforms. But always in connection with Qt5.12.3.

      Does anyone how to solve or workaround this problem?

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              melle87 melle87
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes