Binding value to component

  • I've got a setting in my main qml file that I want to pass to a custom settings component to modify. So in main I have this:
    @Atmosphere { hr: 8 ... }@

    And at the moment my setting is:
    @Setting {
    minimumValue: 1.0
    maximumValue: 12.0
    text: "Hr"
    onSettingChanged: = setting

    Where "setting" is a property variant in my Setting component that ultimately gets connected to the value of a slider. Within a component I can use alias. Is there something equivalent externally to a component? I.e. can I pass to Setting as a reference value that Setting can update directly rather than going through the onSettingChanged signal?


Log in to reply

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