Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Alias make crash qmlviewer
Forum Updated to NodeBB v4.3 + New Features

Alias make crash qmlviewer

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 1.9k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Merinas
    wrote on last edited by
    #1

    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 ?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved