Is it only happening on one specific VM or in all VMs? What kind of VM are you running, Windows 10, Debian, ...?
In my experience this is usually a problem with guest drivers. DId you enable the QEMU guest agent?
For a (temporary) workaround, using SPICE to access your VM should make it work...