changed code to qt and added bluetoothheadphone query