View Single Post
Posts: 650 | Thanked: 619 times | Joined on Nov 2009
#2
My solution is to reference the currentItem of the listview then move the remorseDeleteAction to the root item of delegate:

Code:
        ContextMenu {
               MenuItem {
                text: qsTr("Delete");
                onClicked: {
                    posEditListView.currentItem.remorseDeleteAction();
                }
            }
        }
 

The Following User Says Thank You to sony123 For This Useful Post: