C++ context properties and custom components.. how??

  • Hi, I have several instances of a c++ type set as context properties "zoneA", "zoneB", and "zoneC". I'd like to be able to create ZoneUi.qml with something like a "target" property and create them from the main ui qml file like "ZoneUi { target: zoneA }".

    If these weren't context properties created in c++ I could use a Loader, but they are.

    At this point I'd be happy to set zoneA to a variant property, but that doesn't even work..

    Suddenly after a year or more using qml I feel like I know nothing. :(


Log in to reply

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