A quick way to fetch string from qobject when it's a QString. Backports commit b26ae1cb8eb0756524e322169138830b9b542311 from qemu