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. Autocompletion QDeclarativePropertyMap
Forum Updated to NodeBB v4.3 + New Features

Autocompletion QDeclarativePropertyMap

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 905 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.
  • G Offline
    G Offline
    gfinne
    wrote on last edited by
    #1

    Hi,
    is it possible to have autocompletion in qml when using QDeclarativePropertyMap. In main.cpp I wrote:

    @QDeclarativePropertyMap ownerData;
    ownerData.insert("name", QVariant(QString("John Smith")));
    ownerData.insert("phone", QVariant(QString("555-5555")));
    QDeclarativeContext *ctxt = view.rootContext();
    ctxt->setContextProperty("owner", &ownerData);@

    and I would like to see the key list when I write "owner. " in qml. How is it possible to do that?
    Thanks for your support

    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