Alias make crash qmlviewer



  • Hi,

    I've got a model width specific property (like current item selected) and I have three different views (custom view made with a repeater). I need to have aliases of this specific property in each of my view.
    I tried something like this :

    MyModel.qml
    @
    import QtQuick 1.0
    ListModel{property int test}
    @

    Main.qml
    @
    import QtQuick 1.0

    Item{
    property alias testAlias : rpt.model.test
    Repeater{
    id:rpt
    model:MyModel{}
    }
    }
    @

    This does not raise any warning but qmlviewer simply crash and return -1073741819
    Did anyone knows why this is happening and how can I have this working ?

    Another question . Could we have a Alias component to create dynamic alias like we can do it with binding and signal connection ?


Log in to reply
 

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