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. Expose a List or Array of QDeclarativePropertyMap
Forum Updated to NodeBB v4.3 + New Features

Expose a List or Array of QDeclarativePropertyMap

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 2 Posters 888 Views 1 Watching
  • 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.
  • S Offline
    S Offline
    SHezinger
    wrote on last edited by
    #1

    Hi Everybody,
    I want to expose a list of QDeclarativePropertyMaps.
    The exposing of QDeclarativePropertyMap works fine, but I need a container which holds the different QDeclarativePropertyMaps and can be accessed by index from QML and C++.

    I tried this:

    @ QDeclarativePropertyMap map;
    map.insert("mode", 0x00);
    map.insert("effect", 0x00);
    map.insert("effectMax",0x01);

    QList<QDeclarativePropertyMap> list;
    list.append(map);@
    

    Thanks!

    1 Reply Last reply
    0
    • M Offline
      M Offline
      melghawi
      wrote on last edited by
      #2

      Have a look at the solution posted "here":http://qt-project.org/forums/viewthread/26191/P15.

      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