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

Qt Quick for Rust: Complex types for properties, slots and signals

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P0: Blocker P0: Blocker
    • None
    • 6.11
    • Qt Bridges
    • None
    • 6a1be6b20 (dev), 3278521f0 (dev), 609de26eb (dev), 916c52396 (dev), 119012980 (dev), 5b02a3523 (dev), f30782de0 (dev), 43034342f (dev), 04aaa2231 (dev), 161681a02 (dev), 0ab61320a (dev), 8a3d2754a (dev), 3d822a103 (dev)

      We are currently able to use simple types, i.e. everything that in qt_type_lib in properties, signals and slots (as well as build-in Rust types). We also want to be able to return complex types for properties, slots and signals.

      At the very minimum, this should be a QObject* which properties/functions can then be called from QML side.

      However, this would limit qmllint (type checking, autocomplete) substantially as it could not interfere the correct type. Therefore it would be great to be able to use all QObject-derived types in properties, signals and slots. In our Rust world, this would mean that we can use all types created with ifaces (#[qobject_impl(Base = ...)]).

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