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

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

      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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes