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

Qt Quick for Rust: implement properties

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • None
    • None
    • Qt Bridges
    • None
    • 01095592c (dev), 5e195cc06 (dev), d4d55b7ef (dev)
    • Foundation Sprint 136

      A very convenient way to link C++ and Qt are QObject properties and we should recreate that in Rust. 

      In C++ a very flexible API is provided.

      Q_PROPERTY(type name
                 (READ getFunction [WRITE setFunction] |
                  MEMBER memberName [(READ getFunction | WRITE setFunction)])
                 [RESET resetFunction]
                 [NOTIFY notifySignal]
                 [REVISION int | REVISION(int[, int])]
                 [DESIGNABLE bool]
                 [SCRIPTABLE bool]
                 [STORED bool]
                 [USER bool]
                 [BINDABLE bindableProperty]
                 [CONSTANT]
                 [FINAL]
                 [REQUIRED]) 

      Implement the basic keywords that are required for Rust to expose properties to QML. 
      That will be at least READ, WRITE, MEMBER, NOTIFY and CONSTANT.

        For Gerrit Dashboard: QTBUG-139087
        # Subject Branch Project Status CR V

            yuri.knigavko Yuri Knigavko
            matthias_rauter Matthias Rauter
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes