I create custom itemDelegate, but when i click left mouse button, the row isn't selected. How can I do it in custom itemDelegate?
Qt Code:
  1. itemDelegate:Item{
  2. MouseArea
  3. {
  4. anchors.fill: parent
  5. onClicked: ;//select current row
  6. onDoubleClicked: {
  7. hideAll();
  8. mainconversationForm.visible=true
  9. mainconversationForm.numberTel=tableXMLModel.get(mainTable.currentRow).numersms
  10. // console.log(tableXMLModel.get(mainTable.currentRow).numersms);
  11. }
  12. }
  13. }
To copy to clipboard, switch view to plain text mode