Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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