Uploaded image for project: 'Qt for MCUs'
  1. Qt for MCUs
  2. QTMCU-69

property change signal can't be detected when mentioned on C++ side.

    XMLWordPrintable

Details

    • QUL Sprint 1.2/2021, QUL Sprint 1.3/2022

    Description

      here is the demo code:
      there is a C++ compile error said that cannot find testProp property.

      Rectangle {
          id: root
          color: "#000000"
          width: 800
          height: 480
      
          TestModel.onTestPropChanged: console.log("changed")
      }
      
      #include <qul/singleton.h>
      #include <qul/property.h>
      
      class TestModel : public Qul::Singleton<TestModel>
      {
      public:
          Qul::Property<int> testProp;
      };
      

      temp solution: use Connections

      Attachments

        Issue Links

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

          Activity

            People

              piotr.mucko Piotr Mucko
              jiu shanheng jiu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes