Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

using Treeview of qml in Qt5.13.0 make errors



  • "Could not convert argument 2 at"
    "expression for index@file:///C:/Qt/Qt5.13.0/5.13.0/msvc2017_64/qml/QtQ
    uick/Controls/Private/TreeViewItemDelegateLoader.qml:84"
    the 84 line is " readonly property var index: model ? model["_q_TreeView_ModelIndex"] : __treeModel.index(-1,-1,null)" ? why errors?



  • anyone has any ideas or any idea?



  • the detail:"Could not convert argument 2 at"
    "expression for index@file:///C:/Qt/Qt5.13.0/5.13.0/msvc2017_64/qml/QtQuick/Controls/Private/TreeViewItemDelegateLoader.qml:84"
    "expression for onCompleted@file:///C:/Qt/Qt5.13.0/5.13.0/msvc2017_64/qml/QtQuick/Controls/Private/BasicTableView.qml:545"
    "Passing incompatible arguments to C++ functions from JavaScript is dangerous and deprecated."
    "This will throw a JavaScript TypeError in future releases of Qt!"



  • is this qt bug?


  • Lifetime Qt Champion

    @jimfar Did you debug your app? When does it happen? What does your app do when it happens? I doubt anybody can tell why this happens without more information.


Log in to reply