Fix crash on devices with QPair not installed