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

Qt Quick for Rust: implement qsignal

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • None
    • None
    • Qt Bridges
    • Foundation Sprint 136, Foundation Sprint 137, Foundation Sprint 138

      We need a possibility to inform the QML side about events on the rust side. In traditional Qt these are signals (also properties but they have signals under the hood).

      The currently suggested API is to use an attribute of the form

      #[qsignal(cpp_name = "cppName")]
      fn some_signal(&mut self, ...);

      on the QML side we should be able to connect to onCppName with a connection.

      The signal should be callable with common standard and Qt types as parameters and those should be usable on the QML side.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes