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

Qt Quick for Rust: Hide ItemModels in native containers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P1: Critical P1: Critical
    • None
    • 6.11
    • Qt Bridges
    • 55
    • Foundation Sprint 140

      We want to hide Q*ItemModel behind native looking structures for QtBridges.

      We already have QAbstractItemModel exposed to Rust, so hopefully we can built on top of that.

      One simple idea is to provide generic containers that are copies of the native conatainer  (e.g. Vec<T>) but implement a QAbstractItem Model in the background.

      This should be relatively straight-forward for simple types T. Ideally, we can also treat special types T, such as QObjects, tuples and maps in a particular way, mapping roles to properties, entries or keys.

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

            matthias_rauter Matthias Rauter
            matthias_rauter Matthias Rauter
            Alex Blasche Alex Blasche
            Vladimir Minenko Vladimir Minenko
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes