This generic function (along with its implementations for different types) determines whether two QObjects are equal. Backports commit b38dd678a21582e03ecd2dec76ccf8290455628a from qemu
Backports commit 84be629d5545b5ccc5bff2824e4288677e27de9c from qemu