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

Question related to listview and delegate



  •     Component
        {
            id: customDelegate
            Loader
            {
                id: delegateLoader
                sourceComponent:
                {
                    if (counter >= 1 )
                    {                   
                        return multipleDelegate;
                    }             
                }
    
                Binding
                {
                    id: standardBinder
                    target: delegateLoader.item
                    property: "model"
                    value: model
                    when: delegateLoader.status === Loader.Ready
                }
            }
        }
    
      
        Delegate{id: multipleDelegate}
    
    
        ListView
        {
            id: firstField
            width: parent.width
            delegate: customDelegate
            model: filterModel
            interactive: false
        }
    
        ListView
        {
            id: lastField
            width: parent.width
            delegate: customDelegate
            model: filterModel
            interactive: false
    
        }
    

    here in the above code i am calling two list views with same delegate. first listview has to call once
    please suggest any modification


Log in to reply