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

Qt Quick for Rust: Spike: Rebuild implementation on top of cxx-qt-lib

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • None
    • Qt Bridges
    • None
    • Foundation Sprint 136

      Cxx-Qt is a Rust library that allows to combine Qt and Qt Quick with Rust. It is used quite a lot and we want to support it alongside Qt Bridges if possible and if so as good as possible.

      The Qt Bridge for Rust has its own type library and that makes it incompatible with Cxx-Qt. The Cxx-Qt QmlEngine requires types (QVariant, QAbstractItemModel, etc) from cxx-qt-lib. The Qt Bridge for Rust QmlEngine requires types from the Qt Bridge qt-lib.

      In order for types to interact they need to be in the same QmlEngine, mutliple QmlEngines don't make sense and the same if the case for QApplications.

      This means that for a basic level of interoperability we need to use the same type library. This is not a hard requirement for Qt Bridge and maybe it is better to keep it separated from Cxx-Qt.

      While we probably need some changes in Cxx-Qt we should try to build our Qt Bridge on top of cxx-qt-lib to investigate how successful this can be.

      The outcome allows us to discuss and decide on the next steps.

        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:

                There are no open Gerrit changes