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

Qt Quick for Rust: implement QML_ELEMENT

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • None
    • Qt Bridges
    • 92c566704 (dev), 06c2dbbc4 (dev), bb01a67c4 (dev), e3116610a (dev), 25bcfbdf5 (dev), f31891340 (dev), 68b694e5f (dev)

      Cxx-Qt provides a qml_element macro to expose types to QML, which is very convenient. As of now we only expose single instances to QML with our Qt Bridge. Ideally our Qt Bridge could do the same.

      In C++ we have a wide range of macros to do this, see https://doc.qt.io/qt-6/qqmlintegration-h.html

      QML_ELEMENT or NAMED_QML_ELEMENT is probably the most commonly used macro and should be implemented in Rust. But we should also have a look at the others while at it.

      Note that we agreed that this is not required for TP.

        For Gerrit Dashboard: QTBUG-139088
        # 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: