ConfigurationValue reading/writing/notification qml

I’m declaring the ConfigurationValue in the BrowserPage.qml and I need to be able to also read it in the SettingsPage.qml. Can I declare two ConfigurationValue pointing to the same key? How these will be synchronized?

You can, but it’s probably better to declare it “globally” in the ApplicationWindow, then its ID will be available everywhere.

ok that’s an option and what’s next? I understand that I’d need to pass it’s ID around, right?

edit:
thanks @nephros it’s working! No need to pass this around.

… and because I always forget foo.value with these, add

ApplicationWindow {

property alias myProp: dconfProp.value

ConfigurationValue { 
  id: dconfProp
  key:"/foo/bar/baz"
}
...
}

Ok, that’s a nice hint - thanks again!