Hi all,

I'm having case like this

ItemA {
     property variant myProperty
}

ItemB {
     property alias myAlias: test.myProperty
     ItemA{ id: test }
}

And it seems that onMyAliasChanged is never fired - I need to listen to 
onMyPropertyChanged directly. But in my case I want to "hide" ItemA and 
just expose this property.

Am I doing something wrong or there is another way to do it?

The only thing I can think of for now is:

ItemB {
     property alias myAlias: test.myProperty
     signal MyAliasHasChanged()
     ItemA
         id: test
         onMyPropertyChanged: {
             MyAliasHasChanged()
         }
     }
}

but it seems a little bit ugly and I need to use connect not only one 
alias - and it's a lot of "bogus" coding.

Thanks in advance for the help,
Ivo
_______________________________________________
Qt-qml mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt-qml

Reply via email to