$ 0 0 In the QML MouseArea I have acceptedButtons: Qt.AllButtons Please try adding that to the ViewportWidget instead of the MouseArea.