TableView - How to get hovered row without loosing styleData.selected

前端 未结 1 1704
星月不相逢
星月不相逢 2021-01-24 11:57

I need to highlight the hovered row in a TableView. By default there is no hovering effect. I can use a MouseArea inside rowDelegate to ac

1条回答
  •  借酒劲吻你
    2021-01-24 12:11

    Adding:

    MouseArea {
        // ...
        onPressed: mouse.accepted = false
    }
    

    will propagate the mouse signal to the TableView and keep its selection behavior.

    0 讨论(0)
提交回复
热议问题