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

give property changed hook for Qul::Property in C++ side

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Moved
    • Not Evaluated
    • None
    • None
    • QML
    • None

    Description

      use case: I am having a data model class that needs init based on a specific property from the QML side.
      for example, something like this:

      struct MyData : public Qul::Object
      {
          Qul::Property<int, onValChanged> val;
          void onValChanged(int val) {
          // this function will be called after 10 is set.
          }
      };
      
      MyData {
        val: 10
      }
      

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            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