Autocompletion QDeclarativePropertyMap



  • 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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.