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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • 5.12.4
    • 5.12.3
    • Quick: Controls 2
    • None
    • Developing on Ubuntu and crosscompiling for Raspberry Pi 3.

      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?

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes