Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Question about custom implementation of ECMAScript primitives.
Forum Updated to NodeBB v4.3 + New Features

Question about custom implementation of ECMAScript primitives.

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 268 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    theonlylawislove
    wrote on last edited by
    #1

    I am working on a QML integration with .NET.

    I'd like to map .NET's List<T> type to QVariantList.

    When QVaraintList is loaded in QML, it is an array (Array.isArray(obj) == true).

    This is fine, except it means I have to enumerate my .NET type immediately, which can be a problem for large collections.

    I'd like to expose my .NET type as if it is an array, but implement my own functions that simulate an array (slice, push, etc).

    Can a qml script guru set my on the right track? Maybe use QQmlV4Function as an argument, and interface with the v8 engine directly?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved